How to use the instabug-reactnative.BugReporting.setInvocationEvents function in instabug-reactnative

To help you get started, we’ve selected a few instabug-reactnative 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 Instabug / Instabug-React-Native / InstabugSample / App.js View on Github external
changeInvocationEvent(invocationEvent) {
    if(invocationEvent === 'Shake')
      BugReporting.setInvocationEvents([BugReporting.invocationEvent.shake]);
    if(invocationEvent === 'Button')
      BugReporting.setInvocationEvents([BugReporting.invocationEvent.floatingButton]);
    if(invocationEvent === 'Screenshot')
      BugReporting.setInvocationEvents([BugReporting.invocationEvent.screenshot]);
    if(invocationEvent === 'twoFingersSwipe')
      BugReporting.setInvocationEvents([BugReporting.invocationEvent.twoFingersSwipe]);
    if(invocationEvent === 'None')
      BugReporting.setInvocationEvents([BugReporting.invocationEvent.none]);
  }
github Instabug / Instabug-React-Native / InstabugSample / App.js View on Github external
changeInvocationEvent(invocationEvent) {
    if(invocationEvent === 'Shake')
      BugReporting.setInvocationEvents([BugReporting.invocationEvent.shake]);
    if(invocationEvent === 'Button')
      BugReporting.setInvocationEvents([BugReporting.invocationEvent.floatingButton]);
    if(invocationEvent === 'Screenshot')
      BugReporting.setInvocationEvents([BugReporting.invocationEvent.screenshot]);
    if(invocationEvent === 'twoFingersSwipe')
      BugReporting.setInvocationEvents([BugReporting.invocationEvent.twoFingersSwipe]);
    if(invocationEvent === 'None')
      BugReporting.setInvocationEvents([BugReporting.invocationEvent.none]);
  }