use*_*603 11 react-native expo
我使用以下命令创建了一个应用程序。
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 来创建应用程序。反应本机初始化通知
并执行相同的操作,然后我没有看到任何警告。
| 归档时间: |
|
| 查看次数: |
1319 次 |
| 最近记录: |