React Native CLI Projects
Voltra support for React Native CLI projects is experimental. Feedback is welcome in GitHub issues.
Voltra fully supports React Native CLI projects through the voltra CLI. Instead of relying on Expo config plugins, voltra apply updates the native project for you: it modifies the files Voltra needs, generates new Voltra-owned files, and cleans up outdated generated files from previous runs.
Installation
Install the same native Voltra packages you would use in Expo for the platforms you support, then add voltra as a dev dependency.
iOS
Android
Voltra CLI
Then create a voltra.config.ts file. Most properties under ios and android are the same as the Expo config equivalents, so use the existing platform docs for the shared configuration:
Minimal example:
Once the config is in place, apply the native project changes:
Configuration
Most properties under ios and android use the same names as the Expo config equivalents:
The properties below are specific to the Voltra CLI:
For the full config shape, see VoltraConfig and related types in source.
Using Voltra CLI
Every time you change voltra.config.ts, reapply the native project changes:
The JSX APIs and runtime APIs are the same as in the rest of the Voltra docs. Once voltra apply has set up your native project, continue with the platform guides for iOS and Android.
