How to use the instabug-reactnative.colorTheme 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
toggleSwitch = (value) => {
      this.setState({switchValue: value})
      if(value) {
        this.setState({colorTheme: 'Light'});
        Instabug.setColorTheme(Instabug.colorTheme.light);
      } else {
        this.setState({colorTheme: 'Dark'});
        Instabug.setColorTheme(Instabug.colorTheme.dark);
      }
   }
github Instabug / Instabug-React-Native / InstabugSample / index.ios.js View on Github external
(buttonIndex) => {
        if (buttonIndex == 0) {
          Instabug.setColorTheme(Instabug.colorTheme.light);
        } else if (buttonIndex == 1) {
          Instabug.setColorTheme(Instabug.colorTheme.dark);
        }
      });
  }