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 install
Linking native modules of sample app
npx pod-install
Running sample app
- Android
yarn android
- iOS
yarn ios
Create 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
../version
frompackages/uikit-react-native/src/containers/SendbirdUIKitContainer.tsx
- Run
yarn workspace @sendbird/uikit-react-native generate-version
on the root of the project.
- Run
concurrently 'yarn start' 'react-native run-android'
does not working expected- Run
yarn start
andnpx react-native run-android
separately on thesample
directory.
- Run