Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

instabug-reactnative-custombuild

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

instabug-reactnative-custombuild

React Native plugin for integrating the Instabug SDK

  • 1.0.17
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by40%
Maintainers
1
Weekly downloads
 
Created
Source

instabug-reactnative

Upgrading? Check the Upgrade Guide before bumping to a new major version.

Installation

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

  1. Open the terminal and navigate to your React Native Directory. Then run the following command.
npm install https://github.com/Instabug/instabug-reactnative#custom/disclaimer-feature
  1. Install Ruby. (You can skip this step if you're building for Android only)

  2. Link the bridging files in the npm package to the ios project use the following command.

react-native link instabug-reactnative

Using Instabug

  1. To start using Instabug, import it into your index.ios.js and index.android.js file.
import Instabug from 'instabug-reactnative';
  1. 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);
  1. 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). You can change the invocation event from here, simply by replacing the "shake" with any of the following "button", "none", "screenshot", or "swipe". You can change the primary color by replacing the "#1D82DC" with any colour of your choice. In the case that you are using the floating button as an invocation event, you can change the floating button edge and the floating button offset using the last two methods, by replacing "left" to "right", and by changing the offset number.
@Override
protected List<ReactPackage> getPackages() {
	return Arrays.<ReactPackage>asList(
	new MainReactPackage(),
	new RNInstabugReactnativePackage.Builder("YOUR_APP_TOKEN", MainApplication.this)
                            .setInvocationEvent("shake")
                            .setPrimaryColor("#1D82DC")
                            .setFloatingEdge("left")
                            .setFloatingButtonOffsetFromTop(250)
                            .build()
}

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

Upgrading guide

Version 2.0.0

  • removes dependency on Cocoapods when installing Instabug
  • ensures consistency between the React Native SDK, and the Native SDK

Upgrading from 1.x.x

When upgrading from version 1.x.x please make sure you do the following steps:

  1. Run
npm install instabug-reactnative
  1. Open your Pod file and delete this line pod 'Instabug', '~> 7.0'

  2. Run this command from inside the ios directory inside your root project's directory

pod install
  1. Run this command from your root project's directory. Make sure you have Ruby installed before running this last command. (You can skip installing Ruby if you're building an Android app only)
react-native link instabug-reactnative

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

FAQs

Package last updated on 11 Jul 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc