šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Book a DemoInstallSign in
Socket

instabug-reactnative

Package Overview
Dependencies
Maintainers
2
Versions
294
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

instabug-reactnative

React Native plugin for integrating the Instabug SDK

1.1.9
Source
npm
Version published
Weekly downloads
12K
-17.76%
Maintainers
2
Weekly downloads
Ā 
Created
Source

instabug-reactnative

Installation

This section explains how to install Instabug SDK into your React Native application.

  • Open the terminal and navigate to your React Native Directory. Then run the following command.
npm install instabug-reactnative
  • Link the bridging files in the npm package to the ios project use the following command.
react-native link instabug-reactnative
  • Add Instabug SDK to your iOS project by adding this to your Podfile (You can skip this step if you are building an Android app only).
pod 'Instabug', '~> 7.0'

4.Then run the following command (You can skip this step if you are building an Android app only).

pod install

CocoaPods will download and install the SDK and add all the required dependencies into your ios project.

Using Instabug

  • To start using Instabug, import it into your index.ios.js and index.android.js file.
import Instabug from 'instabug-reactnative';
  • Then initialize it in the constructor or componentWillMount. This line will let the Instabug SDK work with the default behavior. The SDK will be invoked when the device is shaken. You can customize this behavior through the APIs (You can skip this step if you are building an Android app only).
Instabug.startWithToken('IOS_APP_TOKEN', Instabug.invocationEvent.shake);
  • Open android/app/src/main/java/[...]/MainApplication.java You should find the getPackages method looks like the following snippet. You just need to add your Android app token (You can skip this step if you are building an iOS app only).
@Override
protected List<ReactPackage> getPackages() {
	return Arrays.<ReactPackage>asList(
	new MainReactPackage(),
	new RNInstabugReactnativePackage("ANDROID_APP_TOKEN",MainApplication.this,"shake","#1D82DC"));
}

You can find your app token by selecting the SDK tab from your Instabug dashboard.

Documentation

For more details about the supported APIs and how to use them, you can check our Documentation.

Contact US

If you have any questions or feedback don't hesitate to get in touch. You can reach us at any time through support@instabug.com.

License

This software is released under MIT License.

Ā© 2016 Instabug. All rights reserved.

Keywords

react-native

FAQs

Package last updated on 25 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts