ReactNative SDK
ReactNative SDK

πŸ”§ Installation

Install BugBattle for ReactNative

Bugbattle for ReactNative is distributed through npm. Open a terminal window and navigate to the project root. Now run the following command:
1
npm install react-native-bugbattle-sdk --save
Copied!

Install the iOS dependencies.

Navigate to your iOS project folder within the terminal and update your cocoapods by running the following command:
1
pod install
Copied!
The BugBattle SDK is almost installed successfully. Let's carry on with the initialization πŸŽ‰

πŸ‘·β€β™‚οΈ Initialize & configure the SDK

Import the BugBattle SDK by adding the following import inside your index.js.
1
import BugBattle from 'react-native-bugbattle-sdk';
Copied!
Add the following auto configuration method to your index.js file or anywhere else at startup. It's important to run the auto configuration only once.
1
BugBattle.autoConfigure('YOUR_API_TOKEN');
Copied!
You are all set now! Run the app and report your first bug πŸŽ‰.
Get your API here.

🀝 Need help?

We are here to help! [email protected]​
​
Last modified 3mo ago