react-native version >0.26
$ npm install https://github.com/Instabug/instabug-reactnative --save
$ rnpm link instabug-reactnative
- Open your app
.xcodeprojfile - Add the following line to your "Podfile":
pod 'Instabug', '~> 6.0.0' - run
pod install - Run your project (
Cmd+R)<
$ npm install https://github.com/Instabug/instabug-reactnative --save
$ rnpm link instabug-reactnative
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.instabug.reactlibrary.RNInstabugReactnativePackage;to the imports at the top of the file - Add
new RNInstabugReactnativePackage()to the list returned by thegetPackages()method
- Append the following lines to
android/settings.gradle:include ':instabug-reactnative' project(':instabug-reactnative').projectDir = new File(rootProject.projectDir, '../node_modules/instabug-reactnative/android') - Insert the following lines inside the dependencies block in
android/app/build.gradle:compile project(':instabug-reactnative')
import Instabug from'instabug-reactnative'; class testApp extends Component { constructor() { super(); Instabug.startWithToken('YOUR_TOKEN', Instabug.invocationEvent.floatingButton); } ... }You can check the rest of the APIs here Wiki.
If your app doesn't already access the microphone or photo library, you'll need to add the following 2 keys to your app's info.plist file:
NSMicrophoneUsageDescription NSPhotoLibraryUsageDescription This software is released under MIT License.
© 2016 Instabug. All rights reserved.