Quick Install
The recommended installation process:yarn install- Installs all npm dependenciesyarn setup- Runs GraphQL codegen, design system setup, and fetches network configs
What the Setup Does
Theyarn setup command runs several initialization tasks:
The setup script is defined in
package.json as:Postinstall Script
When you runyarn install, a postinstall script automatically runs:
- Generates native build configurations
- Patches the iOS
GoogleService-Info.plistwith your API key from.env - Runs prebuild hooks from
rainbow-scripts(internal developers only)
Full Installation Options
Depending on your platform, you may want different installation commands:Installation Commands Reference
| Command | Description |
|---|---|
yarn install | Install npm dependencies |
yarn setup | Run GraphQL codegen and fetch configs |
yarn install-all | Install everything including CocoaPods with repo update |
yarn fast | Install everything with fast CocoaPods (no repo update) |
yarn install-all-no-flipper | Install without Flipper debugger |
Platform-Specific Setup
After the base installation, you need to configure your target platform(s):iOS Setup
Install Xcode, Watchman, and CocoaPods for iOS development
Android Setup
Set up JDK 17, Android Studio, and Android SDK
Verify Installation
After installation completes, verify everything is set up correctly:CI Installation
For continuous integration environments, use the CI setup script:Updating Dependencies
Update JavaScript Packages
Update iOS Pods
Update Android Dependencies
Android dependencies are managed inandroid/app/build.gradle and sync automatically when opening Android Studio.
Cleaning & Reinstalling
If you encounter issues, you may need to clean and reinstall:- Clean All
- Clean Node Modules
- Clean iOS
- Clean Android
- Clean Metro Cache
Nuclear option - removes everything and reinstalls:This removes:
node_modules/- iOS build artifacts and pods
- Android build artifacts
- Metro bundler cache
- Gradle cache
Environment Variables
Key environment variables in your.env file:
Troubleshooting
Postinstall script fails
Postinstall script fails
If the postinstall script fails, you can run it manually:For internal developers, ensure
rainbow-scripts is cloned and .env exists.GraphQL codegen errors
GraphQL codegen errors
If GraphQL codegen fails, try running it manually:You may need to set up the Graph ENS key:
yarn install is slow
yarn install is slow
Yarn 4 uses Zero-Installs with PnP, which should be fast. If it’s slow:
- Check your network connection
- Clear yarn cache:
yarn cache clean - Try again:
yarn install
node-gyp build failures
node-gyp build failures
Some native modules may fail to build. Ensure you have:
- Xcode Command Line Tools (macOS):
xcode-select --install - Python 3 installed
- Correct Node.js version (22+)
Next Steps
With dependencies installed, continue to platform-specific setup:iOS Setup
Configure Xcode and CocoaPods for iOS development
Android Setup
Set up Android Studio and SDK for Android development