小编use*_*603的帖子

错误:无法停用保持唤醒。但是,它可能已经被停用。由 Expo cli 创建的应用程序

我使用以下命令创建了一个应用程序。

npx create-react-native-app 通知

我没有编辑代码。一旦我在 Android 模拟器中启动应用程序,如果我按后退按钮,然后按 Android 模拟器上的“方形”按钮并尝试重新启动“通知”应用程序,我会看到以下错误消息。

可能的未处理的 Promise 拒绝(id:0):错误:无法停用保持唤醒。但是,它可能已经被停用。PromiseMethodWrapper@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false:2712:45 http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false:106140 :40 deactivateKeepAwake@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false:115107:77 http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false :115095:35 invokeGuardedCallbackImpl@http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false:9616:21

下面是依赖项列表。

"dependencies": {
    "expo": "~41.0.0",
    "expo-splash-screen": "~0.10.2",
    "expo-status-bar": "~1.0.4",
    "expo-updates": "~0.5.4",
    "react": "16.13.1",
    "react-dom": "16.13.1",
    "react-native": "~0.63.4",
    "react-native-gesture-handler": "~1.10.2",
    "react-native-reanimated": "~2.1.0",
    "react-native-screens": "~3.0.0",
    "react-native-unimodules": "~0.13.3",
    "react-native-web": "~0.13.12"
  },
Run Code Online (Sandbox Code Playgroud)

但是如果我使用 React Native cli 来创建应用程序。反应本机初始化通知

并执行相同的操作,然后我没有看到任何警告。

react-native expo

11
推荐指数
0
解决办法
1319
查看次数

带有真实设备的 firebase 模拟器

我正在构建一个 react-native 应用程序。我想在真实设备上测试我的代码。有没有人用真正的 iphone/android 设备尝试过 firebase 模拟器?就我而言,Firebase 模拟器在 Android 模拟器/Iphone 模拟器上运行良好,但不适用于真实设备。我收到以下错误。

错误 [Error: [auth/network-request-failed] 发生了网络错误(例如超时、中断的连接或无法访问的主机)。]

提前致谢!!

firebase reactjs react-native flutter

0
推荐指数
1
解决办法
245
查看次数

标签 统计

react-native ×2

expo ×1

firebase ×1

flutter ×1

reactjs ×1