The BugBattle SDK for React Native is the easiest way to integrate BugBattle into your apps!
Open a terminal window and navigate to the root.
Install via npm
npm install react-native-bugbattle-sdk --save
Navigate to your iOS project folder within the terminal and update the cocoapods by typing
Import the BugBattle SDK by adding the following import inside one of your root components.
import BugBattle from 'react-native-bugbattle-sdk';
In addition, you need to call the initialization function to initialize the Bugbattle SDK. Make sure that the initialization method gets called only once (i.e. by using
Your API key can be found in the project settings within BugBattle. Possible values for the activation method are
BugBattle.NONE: No automatic activation.
BugBattle.SHAKE: Activation on device shake.
BugBattle.SCREENSHOT: Activation when user performs a screenshot trigger.
We are here to help! [email protected]