Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
instabug-reactnative
Advanced tools
react-native
version >0.26
$ npm install https://github.com/Instabug/instabug-reactnative#master --save
$ react-native link instabug-reactnative
.xcodeproj
filepod 'Instabug', '~> 7.0'
pod install
Cmd+R
)<android/app/src/main/java/[...]/MainApplication.java
Add
import com.instabug.reactlibrary.RNInstabugReactnativePackage;
to the imports at the top of the file
Add
new RNInstabugReactnativePackage("YOUR_ANDROID_APPLICATION_TOKEN",MainApplication.this,"INVOCATION_EVENT");
to the list returned by the getPackages()
method
2. Append the following lines to android/settings.gradle
:
```gradle
include ':instabug-reactnative'
project(':instabug-reactnative').projectDir = new File(rootProject.projectDir, '../node_modules/instabug-reactnative/android')
```
3. Insert the following lines inside the dependencies block in android/app/build.gradle
:
```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
Usage
To initialize Instabug in your app, you only need to link instabug-reactnative correctly by overwriting
"YOUR_ANDROID_TOKEN" text by your android app token, "button" text by your desired invocation event, "light" text by your desired color theme, and can take a wide range of optional parameters for configuration.
android/app/src/main/java/[...]/MainApplication.java
after linking the plugin, you should find the getPackages method looks like
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new RNInstabugReactnativePackage("YOUR_ANDROID_TOKEN",MainApplication.this,"button","light")
);
}
The invocation event can be specified as one of the following values:
value | native equivalent | description |
---|---|---|
'shake' | InstabugInvocationEvent.SHAKE | Shaking the device while in any screen to show the feedback form. |
'button' | InstabugInvocationEvent.FLOATING_BUTTON | Shows a floating button on top of all views, when pressed it takes a screenshot. |
'screenshot' | InstabugInvocationEvent.SCREENSHOT_GESTURE | Taking a screenshot using the Home+Lock buttons while in any screen to show the feedback form, substituted with IBGInvocationEventShake on iOS 6.1.3 and earlier. |
'swipe' | InstabugInvocationEvent.TWO_FINGER_SWIPE_LEFT | Swiping two fingers left while in any screen to show the feedback form. |
'none' | InstabugInvocationEvent.NONE | No event will be registered to show the feedback form, you'll need to code your own and call the method invoke. |
The InstabugColorTheme can be specified as one of the following values:
value | native equivalent | description |
---|---|---|
'light' | InstabugColorTheme.InstabugColorThemeLight | light theme is color theme to use for the SDK's UI |
'dark' | InstabugColorTheme.InstabugColorThemeDark | Dark theme is color theme to use for the SDK's UI |
This software is released under MIT License.
© 2016 Instabug. All rights reserved.
FAQs
React Native plugin for integrating the Instabug SDK
The npm package instabug-reactnative receives a total of 4,251 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.