This sample is based on React-Native CLI.
Sample for expo: https://github.com/sendbird/sendbird-uikit-sample-react-native-expo
- A fully configured environment for React Native development. Please refer to the React Native environment setup guide to ensure your development environment is properly configured.
- Nodejs 18.20 or newer
Install node modules
yarn installLinking native modules of sample app
npx pod-installRunning sample app
- Android
yarn android- iOS
yarn iosCreate a file to sample/src/env.ts and write the code below to the file you created.
export const APP_ID = '2D7B4CDB-932F-4082-9B09-A1153792DC8D';If you would like to try the sample app specifically fit to your usage, you can do so by replacing the default sample app ID with yours, which you can obtain by creating your Sendbird application from the dashboard.
- Could not connect to development server on Android device
- Run
adb reverse tcp:8081 tcp:8081.
- Run
- Unable to resolve module
../versionfrompackages/uikit-react-native/src/containers/SendbirdUIKitContainer.tsx- Run
yarn workspace @sendbird/uikit-react-native generate-versionon the root of the project.
- Run
concurrently 'yarn start' 'react-native run-android'does not working expected- Run
yarn startandnpx react-native run-androidseparately on thesampledirectory.
- Run