Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
BugReporting.invocationOptions.commentFieldRequired,
])
// FIXME: android: attempt to invoke method intValue on a null object ref, ios: unrecognized selector sent to instance
// BugReporting.setReportTypes([
// BugReporting.reportType.bug,
// BugReporting.reportType.feedback,
// BugReporting.reportType.question,
// ])
Instabug.setCrashReportingEnabled(INSTABUG_CRASH_REPORTING_ENABLED)
Platform.OS === 'ios' && BugReporting.setAutoScreenRecordingMaxDuration(20)
BugReporting.setAutoScreenRecordingEnabled(
INSTABUG_BUG_REPORTING_AUTO_SCREEN_RECORDING
)
Instabug.startWithToken(INSTABUG_TOKEN, [
Instabug.invocationEvent[INSTABUG_INVOCATION_EVENT],
])
if (__DEV__) {
const DevMenu = require('react-native-dev-menu')
DevMenu.addItem('Show Instabug', () => BugReporting.invoke())
}
export default InstabugReporter
Instabug.isRunningLive(function (isLive) {
if (isLive) {
Instabug.startWithToken('LIVE_TOKEN', Instabug.invocationEvent.shake);
} else {
Instabug.startWithToken('BETA_TOKEN', Instabug.invocationEvent.shake);
}
});
constructor(props) {
super(props);
this.state = {
switchValue: true,
colorTheme: 'Light'
};
Instabug.startWithToken("YOUR_TOKEN", [Instabug.invocationEvent.floatingButton]);
}
constructor(props) {
super(props);
Instabug.startWithToken('0f0dc916bd9175e3b5d2fdf0cfa49a69',
Instabug.invocationEvent.none);
}