如何在带有平台相关代码的jest中进行测试。此外,如何模拟在模块中导入的静态常量。下面是代码: utils.ts:export const isIOS = Platform.OS === "ios";/items";
// not working because Platform.OS is used st
我正在尝试学习reactnative,但无法使用以下命令加载应用程序:react-native 0.26.2在IOS控制台中,它有2016-05-25 22:56:06.525Sending websocketFailed with no listeners registered. 2016-05-25 22:56:06.543 [error][tid:com.facebook.react.JavaScriptexpression must either be null or a