How to use react-native-dev-menu - 4 common examples

To help you get started, we’ve selected a few react-native-dev-menu examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github berty / berty / client / packages / reporter / InstabugReporter.js View on Github external
//   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
github berty / berty / client / react-native / app / view / screen / App.js View on Github external
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())
      }
    }
  }
github berty / berty / client / react-native / app / view / screen / Chats / List.js View on Github external
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')
      )
    }
  }
github berty / berty / client / packages / screen / Chats / List.js View on Github external
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')
      )
    }
  }

react-native-dev-menu

Add custom items to the React Native dev menu

MIT
Latest version published 2 years ago

Package Health Score

53 / 100
Full package analysis

Popular react-native-dev-menu functions