Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
instabug-reactnative
Advanced tools
Upgrading? Check the Upgrade Guide before bumping to a new major version.
Instabug is a reliable bug reporting and user feedback platform that empowers mobile-first companies to iterate faster and enhance their app quality. Gather bug reports from your users and the Instabug SDK will automatically capture an environment snapshot of your user's device including all console logs, server-side network requests, bug reproduction steps and more details that would help you debug and fix bugs faster.
For more info, visit Instabug.com.
This section explains how to install Instabug SDK into your React Native application.
npm install instabug-reactnative
or
yarn add instabug-reactnative
Install Ruby. (You can skip this step if you're building for Android only)
Install xcodeproj
gem by running the following command. (You can also skip this step if you're building for Android only)
gem install xcodeproj
react-native link instabug-reactnative
index.ios.js
and index.android.js
file.import Instabug from 'instabug-reactnative';
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);
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.
Version 2.0.0
When upgrading from version 1.x.x, please make sure you do the following steps:
npm install instabug-reactnative
Open your Pod file and delete this line pod 'Instabug', '~> 7.0'
Run this command from inside the ios
directory inside your root project's directory
pod install
xcodeproj
gem installed before running this last command. (You can skip installing Ruby if you're building an Android app only)react-native link instabug-reactnative
When upgrading from 2.0.x to 2.1.x, please make sure you do the following steps:
reacy-native unlink instabug-reactnative
npm install instabug-reactnative
react-native link instabug-reactnative
For more details about the supported APIs and how to use them, you can check our Documentation.
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.
This software is released under MIT License.
© 2017 Instabug. All rights reserved.
FAQs
React Native plugin for integrating the Instabug SDK
The npm package instabug-reactnative receives a total of 10,761 weekly downloads. As such, instabug-reactnative popularity was classified as popular.
We found that instabug-reactnative demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.