[Use] React Native rollbar-react-native recorded React Native project

  1, Debug mode error will be reported as follows:

  错误:Invariant Violation:Calling synchronous methods on native modules is not supported in Chrome.

  Consider providing alternative methods to expose this method in debug mode.e.g.bu exposing constants ahead-of-time.

  Solution: Debug mode, comment the following code:

import { Client } from 'rollbar-react-native';
const rollbar = new Client('6628ae4**********575f8e2f267');

 

Guess you like

Origin www.cnblogs.com/xjf125/p/12331150.html