This is demo repo is used by Solution Engineers when demo'ing Sentry's React Native SDK's capabilities.
Home Screen | Product Detail | Cart |
---|---|---|
![]() |
![]() |
![]() |
See package.json for the up to date information about the @sentry/react-native
SDK and react-native
versions.
Ensure you have working React Native Development Environment, for the latest steps follow the official guide at https://reactnative.dev/docs/set-up-your-environment. For specific Java versions use sdkman and for Ruby use rbenv.
git clone git@github.com:sentry-demos/sentry_react_native.git
- Optional - Add your DSN and BACKEND_URL to
src/config.ts
- Optional - Create a .env file in project root and add
SE=<value>
export SENTRY_AUTH_TOKEN=<token>
How to generate Sentry Auth Token.npm install
- Only for iOS -
bundle install
- Only for iOS -
npx pod-install
For local build with hot reload capabilities use the following commands:
# Metro Development Server - Optional
# npm run start
npm run build-dev-android
npm run build-dev-ios
For testing release builds (includes automatic upload of source maps and native debug files) use the following commands:
npm run build-release-android
npm run build-release-ios
A release is need to automatically generate data for demo.sentry.io
- Merge all changes to the default branch (currently
master
). - Go to
Actions
->Release
. - Click
Run workflow
at the top of the view. If you don't see the button, you don't have permission to trigger the action in this repository. - Select
branch
you want to make release from (typicallymaster
) - Write the new version, follow https://semver.org/, for example
5.7.22
. - Go to the
Releases
page and wait for the new release to appear. The Github workflow might take ~30 mins. Android is done faster ~10 mins, iOS takes longer ~30 mins. Both have to be done for the release to be published. - Use the APK and APP zipped artifacts as needed.
Follow https://react-native-community.github.io/upgrade-helper/
See troubleshooting.md for more tips and tricks.