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:

npm install react-native-bugbattle-sdk --save

Install the iOS dependencies.

Navigate to your iOS project folder within the terminal and update your cocoapods by running the following command:

pod install

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.

import BugBattle from 'react-native-bugbattle-sdk';

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.

BugBattle.autoConfigure('YOUR_API_TOKEN');

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]​

​