我的代码在 NativeEventEmitter.js 中出错,堆栈显示 PushNotificationManagerIOS.js 作为下层文件。我从未在我的应用中使用任何通知功能,怎么了?
虽然有时它可能与错误安装的库有关,替换:
import * as ReactNative from "react-native";
和:
import { Text, View, /* and the other classes you want to use*/ } from "react-native";
为我修好了。记得改成ReactNative.Foo
justFoo
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句