【React Native】在React Native项目中使用rollbar-react-native记录

﹥>﹥吖頭↗ 提交于 2020-02-19 15:09:15

  1、Debug模式下会报如下错误:

  错误: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.

  解决:Debug模式下,注释以下代码:

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

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!