Template Repository
Customize Before Production
Please note that this template is for development and testing purposes only. Be sure to customize and secure it before using in production.
React Native Template Repository
Getting Started
For detailed installation instructions, select your framework below:
- Clone the repository:
git clone https://github.com/okto-hq/okto-sdkv2-react-native-template-app.git
cd okto-sdkv2-react-native-template-app
- Install dependencies:
npm install
- Configure your credentials in the app:
// Update the configuration in your app
const config = {
environment: "sandbox",
clientPrivateKey: "YOUR_CLIENT_PRIVATE_KEY",
clientSWA: "YOUR_CLIENT_SWA",
};
const googleConfig = {
webClientId: "YOUR_GOOGLE_WEB_CLIENT_ID",
iosClientId: "YOUR_GOOGLE_IOS_CLIENT_ID",
androidClientId: "YOUR_GOOGLE_ANDROID_CLIENT_ID"
};
Warning:Essential Setup Required
ShowBefore you begin, set up your developer dashboard by making sure you have :
- Created your Okto Developer Dashboard account
- Get your Okto credits from the dashboard
- Obtained your API keys from the dashboard
- Enabled the specific Chains and Tokens you plan to use in your application
- Optional: Enabled Sponsorship for the desired chains
If you need help, reach out to us on our troubleshooting form and we will contact you.
- Okto API Keys: You need your
CLIENT_PRIVATE_KEY
andCLIENT_SWA
. Obtain these from the Okto Developer Dashboard. - Okto Account Setup: Ensure you have sufficient Okto Credits, enable the required Chains and Tokens , and optionally Activate Sponsorship.
- Google OAuth Credentials (if using Google authentication): Create OAuth 2.0 credentials in the Google Cloud Console to get your
GOOGLE_CLIENT_ID
.Note
- Create OAuth 2.0 credentials for each platform:
- Web Client ID (for Expo Go and web)
- iOS Client ID
- Android Client ID
- Follow our platform-specific setup guides:
- Create OAuth 2.0 credentials for each platform:
- Start the development server:
npx expo start
- Clone the repository:
git clone https://github.com/okto-hq/okto-sdkv2-react-native-template-app.git
cd okto-sdkv2-react-native-template-app
- Install dependencies:
npm install
# For iOS
cd ios && pod install && cd ..
- Configure your credentials in the app:
// Update the configuration in your app
const config = {
environment: "sandbox",
clientPrivateKey: "YOUR_CLIENT_PRIVATE_KEY",
clientSWA: "YOUR_CLIENT_SWA",
};
const googleConfig = {
webClientId: "YOUR_GOOGLE_WEB_CLIENT_ID",
iosClientId: "YOUR_GOOGLE_IOS_CLIENT_ID",
androidClientId: "YOUR_GOOGLE_ANDROID_CLIENT_ID"
};
Warning:Essential Setup Required
ShowBefore you begin, set up your developer dashboard by making sure you have :
- Created your Okto Developer Dashboard account
- Get your Okto credits from the dashboard
- Obtained your API keys from the dashboard
- Enabled the specific Chains and Tokens you plan to use in your application
- Optional: Enabled Sponsorship for the desired chains
If you need help, reach out to us on our troubleshooting form and we will contact you.
- Okto API Keys: You need your
CLIENT_PRIVATE_KEY
andCLIENT_SWA
. Obtain these from the Okto Developer Dashboard. - Okto Account Setup: Ensure you have sufficient Okto Credits, enable the required Chains and Tokens , and optionally Activate Sponsorship.
- Google OAuth Credentials (if using Google authentication): Create OAuth 2.0 credentials in the Google Cloud Console to get your
GOOGLE_CLIENT_ID
.Note
- Create OAuth 2.0 credentials for each platform:
- Web Client ID (for Expo Go and web)
- iOS Client ID
- Android Client ID
- Follow our platform-specific setup guides:
- Create OAuth 2.0 credentials for each platform:
- Start the development server:
npx react-native run-ios
npx react-native run-android