Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// 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
super(props)
if (Platform.OS !== 'web') {
Instabug.setWelcomeMessageMode(Instabug.welcomeMessageMode.disabled)
if (Platform.OS === 'ios') {
Instabug.startWithToken(Config.INSTABUG_TOKEN, [
// eslint-disable-next-line
__DEV__
? Instabug.invocationEvent.none
: Instabug.invocationEvent.shake,
])
}
// eslint-disable-next-line
if (__DEV__) {
const DevMenu = require('react-native-dev-menu')
DevMenu.addItem('Show Instabug', () => Instabug.BugReporting.invoke())
}
}
}
constructor(props) {
super(props)
if (Platform.OS !== 'web' && __DEV__) {
const DevMenu = require('react-native-dev-menu')
DevMenu.addItem('Dev tools', () =>
this.props.navigation.navigate('settings/devtools')
)
}
}
constructor(props) {
super(props)
if (Platform.OS !== 'web' && __DEV__) {
const DevMenu = require('react-native-dev-menu')
DevMenu.addItem('Dev tools', () =>
this.props.navigation.navigate('settings/devtools')
)
}
}