gpt4 book ai didi

react-native - 摇动手势后,操作表中缺少 "Enable Live Reload"和“启用热重载”选项

转载 作者:行者123 更新时间:2023-12-03 14:48:57 26 4
gpt4 key购买 nike

选择模拟器的“摇动”手势以提出重新加载/检查器/监视器选项时,缺少“启用实时重新加载”和“启用热重新加载”选项。

我运行了一个旧版本,以及一个新实例(相同的代码)。新实例没有显示最有用的选项。

react-native info



产生:
React Native Environment Info:
System:
OS: macOS 10.14.4
CPU: (4) x64 Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz
Memory: 84.52 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 11.4.0 - /usr/local/bin/node
Yarn: 1.12.3 - /usr/local/bin/yarn
npm: 6.5.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
Android SDK:
API Levels: 23, 25, 26, 27, 28
Build Tools: 26.0.2, 26.0.3, 27.0.3
System Images: android-26 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom
IDEs:
Android Studio: 3.2 AI-181.5540.7.32.5056338
Xcode: 10.2/10E125 - /usr/bin/xcodebuild
npmPackages:
react: ^16.8.6 => 16.8.6
react-native: ^0.56.1 => 0.56.1
npmGlobalPackages:
react-native-git-upgrade: 0.2.7

到目前为止,我已经删除了 iOS 构建目录并重置了所有内容:

rm -rf ios/build && watchman watch-del-all && npm start -- --reset-cache



并重新运行 yarn ,

yarn start --reset-cache



重新启动,一切都无济于事。

我正在使用 React Native 0.56.1

我在右侧包含了一个旧模拟器窗口的屏幕截图,该窗口保持打开状态,以及一个使用相同代码库的新实例。

enter image description here

最佳答案

如果缺少 Hot Reload 或 Live Reload 选项,这是因为如 react-native 博客中所述

When we asked the React Native community about common pain points, one of the top answers was that the “hot reloading” feature was broken. It didn’t work reliably for function components, often failed to update the screen, and wasn’t resilient to typos and mistakes.



https://facebook.github.io/react-native/blog/2019/09/18/version-0.61

关于react-native - 摇动手势后,操作表中缺少 "Enable Live Reload"和“启用热重载”选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55803289/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com