Quickstart Guide
Get started with Solana App Kit in minutes
This guide will help you get up and running with Solana App Kit quickly. Follow these steps to install, configure, and start using the kit in your React Native application.
Prerequisites
Before you begin, make sure you have:
- Node.js (v14 or later)
- Yarn or npm
- React Native development environment set up
- Basic knowledge of React Native and Solana
Installation
- Create a new React Native project (skip if adding to an existing project):
- Install Solana App Kit:
- Install peer dependencies:
Configuration
1. Environment Setup
Create a .env
file in your project root with the following variables:
2. Provider Setup
Wrap your application with the necessary providers in your App.js
or index.js
:
3. App Configuration
Create a configuration file at src/config/index.js
:
Basic Usage
1. Using Components
Here’s how to use some of the key components:
Thread Component (Social Feed)
Wallet Component
2. Using Hooks
Solana App Kit provides several useful hooks:
3. Using Services
For direct blockchain interactions, use the provided services:
Troubleshooting
If you encounter issues during setup:
-
Dependency Issues:
-
iOS Build Issues:
-
Android Build Issues:
-
Metro Bundler Issues:
Next Steps
Now that you have Solana App Kit set up, explore the following sections to learn more:
- Repository Structure - Understand the codebase organization
- Components - Explore available UI components
- Hooks - Learn about custom React hooks
- Services - Discover blockchain interaction services
For more advanced usage, check out the Functions section to see how to implement specific features.
Was this page helpful?