Expo
Wire Capreolus into Expo SDK 50+ with the config plugin in app.json.
Install
bash
npx expo install @capreolus/react-nativeConfigure the plugin
Add the Capreolus plugin to your app.json so EAS Build wires the native side automatically.
app.json
{
"expo": {
"name": "Acme",
"slug": "acme",
"plugins": [
[
"@capreolus/react-native",
{
"apiKey": "pub_xxx",
"apiUrl": "https://api.capreolus.app"
}
]
]
}
}Initialize
The plugin reads the values above and calls Capreolus.start for you. If you prefer to manage the start call yourself, leave the plugin args empty and call the API in JS — see the React Native guide.
Build
Capreolus needs a custom dev client (not Expo Go) because it links native code. Run:
bash
npx expo prebuild
eas build --profile developmentExpo Go does not include the Capreolus native module. Once you add the plugin, you must use a development build or EAS Build going forward.