Setup With CocoaPods
To use Sentry with CocoaPods, you have to install the packages with npm
or yarn
and link them locally in your Podfile
.
Copied
npm install --save react react-native @sentry/react-native
After that, change your Podfile
to reference to the packages in your node_modules
folder. For the latest reference on how to use react-native with CocoaPods see: Integration with existing apps
Copied
target 'YOUR-TARGET' do
# Your react-native and other pods
pod 'RNSentry', :podspec => '../node_modules/@sentry/react-native/RNSentry.podspec' # or your path to node_modules
end
And then, run pod install
which should link everything correctly. Please keep in mind that you need the build steps that upload your source maps and debug symbols.
You can edit this page on GitHub.
- Package:
- npm:@sentry/react-native
- Version:
- 2.1.0
- Repository:
- https://github.com/getsentry/sentry-react-native