Skip to main content

Install & Initialize the SDK

Use the client and its modules; use useReactiveClient from @dynamic-labs/react-hooks when you need reactive state in components.
appOrigin is a mandatory field in the Dynamic config. Make sure to set it to your app’s origin URL when initializing the SDK.

Prebuild (Expo) / Native linking

Since our SDK relies on native modules (e.g. react-native-webview, expo-secure-store), you need to rebuild the native layer of your app after installing.
This SDK is not compatible with Expo Go. Expo Go does not support custom native modules. You must use a development build, EAS Build, or a bare React Native workflow.
If you’re using Expo with a managed workflow, run:
Shell
npx expo prebuild
Then rebuild your app with npx expo run:ios or npx expo run:android.

Polyfills

Please refer to the Polyfills section for information on how to set up necessary polyfills. To use most React Native features (such as social connections), set up the mobile deeplink URLs Dynamic uses to redirect back to your app. For step-by-step setup, see Deeplink URLs.