This is a simple project that demonstrates how to use the Kontex React Native SDK.
-
This demo uses Expo. First, make sure you have set up your environment.
-
Clone the repository.
git clone git@github.com:kontextso/sdk-react-native-demo.git
cd sdk-react-native-demo- Install dependencies
npm install- Update your publisher token and placement code.
Open constants.ts and replace the placeholders with your actual publisher token and placement code:
export const PUBLISHER_TOKEN = "<your publisher token>";
export const PLACEMENT_CODE = "<your placement code>";- Run the development server (iOS or Android)
npm run ios
npm run android
- Click
ito open the iOS simulator orato open the Android emulator.
To learn more about the Kontext React Native SDK, check out the following resource: