4646- [ ] 上架 App Store、Google Play
4747- [ ] 通过 cheerio,获取更多的数据,开发交互功能
4848
49- ## 完成
49+ ## Done
5050
5151- [x] 升级提醒
5252- [x] 升级 RN 到到 ** 0.71.3**
7171
7272## Features
7373
74- 1 . 基于 React Native 0.70.4 版本。
74+ 1 . 基于 React Native 0.71.3 版本。
75752 . 引入 TypeScript 强类型检查,保证维护性、可读性、稳定性。
76763 . eslint 代码规范检查,prettier 代码美化、Husky 作为 git hooks 进行代码格式化、规范校验。
77774 . i18n 集成,支持多国语言。实现了语言切换功能。
106106
107107具体可根据官网进行 React Native 开发环境和 iOS、Android 运行环境的配置。参考[ 这里] ( https://reactnative.dev/docs/environment-setup ) 。
108108
109- ## Quick Start
109+ ## Develop
110110
111111``` bash
112112
@@ -188,7 +188,6 @@ npx react-native run-android --variant release
188188│ ├── types # 类型定义
189189│ ├── utils # 工具类
190190│ └── api # API库
191- ├── .buckconfig # buck的配置文件,buck是Facebook开源的高效编译系统
192191├── .editorconfig # 编辑器配置
193192├── .eslintrc.js # eslint的配置文件
194193├── .gitignore # 配置git提交需要忽略的文件
@@ -216,32 +215,33 @@ npx react-native run-android --variant release
216215 <img src =" https://contrib.rocks/image?repo=funnyzak/react-native-v2ex " />
217216</a >
218217
219- ## 调试
218+ ## Debug
220219
221- ### 工具
220+ ### Debug Tools
222221
223- - 使用 ** [ Flipper] ( https://fbflipper.com/docs/getting-started/index/ ) ** 调试。[ 参考] ( https://reactnative.cn/docs/debugging#flipper ) 。
224- - 使用 ** [ react-devtools] ( https://www.npmjs.com/package/react-devtools ) ** 调试。 [ 参考] ( https://reactnative.cn/docs/debugging#react-devtools ) 。
225- - React Native Debugger [ 参考] ( https://reactnative.cn/docs/debugging#react-native-debugger ) 。
222+ - ** [ Hermes Debugger] ( https://reactnative.cn/docs/hermes#debugger ) ** is a standalone app for debugging React Native apps that use Hermes.
223+ - ** [ Flipper] ( https://fbflipper.com/docs/getting-started/index/ ) ** is a desktop debugging platform for mobile developers.
224+ - ** [ react-devtools] ( https://www.npmjs.com/package/react-devtools ) ** is a standalone app for inspecting the React component hierarchy.
225+ - ** [ React Native Debugger] ( https://github.com/jhen0409/react-native-debugger/blob/master/docs/getting-started.md ) is a standalone app for debugging React Native apps, and includes React DevTools.
226226- Google Chrome 调试,[ 参考] ( https://reactnative.cn/docs/debugging#chrome ) 。
227227
228- ### 提示
229-
230- #### 快捷操作
228+ ### Debug Menu
231229
232230可以通过摇晃设备或是选择 iOS 模拟器的"Hardware"菜单中的"Shake Gesture"选项来打开开发菜单。另外,如果是在 iOS 模拟器中运行,还可以按下 Command⌘ + D 快捷键,Android 模拟器对应的则是 Command⌘ + M(windows 上可能是 F1 或者 F2),或是直接在命令行中运行 adb shell input keyevent 82 来发送菜单键命令。
233- #### react-native-debugger 调试
234231
235- 1 . 安装 ** [ react-native-debugger] ( https://github.com/jhen0409/react-native-debugger ) ** ;
236- 2 . ` yarn debug ` 启动 react-native-debugger。
237- 3 . 启动模拟器 ` yarn ios ` ,在模拟器打开 debug remote 选项;
232+ ### react-native-debugger
233+
234+ 1 . 安装 ** [ react-native-debugger] ( https://github.com/jhen0409/react-native-debugger/blob/master/docs/getting-started.md ) ** ;
235+ 2 . ` yarn debug ` 启动 react-native-debugger;
236+ 3 . 启动模拟器 ` yarn ios ` ,在模拟器打开 debug remote 选项。
237+
238+ ** 注意:** 使用此方式,需要禁用 ` Hermes ` ,否则会报错。建议启用 Hermes 开关,使用 Hermes 调试。
238239
239240## FAQ
240241
241242### 配置BugSnag
242243
2432441 . [ Create a bugsnag account] ( https://app.bugsnag.com/user/new ) .
244-
2452452 . Add your project api key to [ android/app/src/main/AndroidManifest.xml] ( android/app/src/main/AndroidManifest.xml#L25-L26 ) :
246246
247247 ``` xml
@@ -258,7 +258,7 @@ npx react-native run-android --variant release
258258
259259 The API key can be found in the Bugsnag settings for your project.
260260
261- ### Invariant Violation: Module AppRegistry is not a registered callable module
261+ ### Invariant Violation: Module AppRegistry is not a registered callable module
262262
263263``` bash
264264npm cache clean --force
@@ -280,7 +280,7 @@ Reference: [https://stackoverflow.com/questions/64768328/invariant-violation-mod
280280
281281### RCTBridge required dispatch_sync to load RNGestureHandlerModule
282282
283- > [https://github.com/software-mansion/react-native-gesture-handler/issues/722](https://github.com/software-mansion/react-native-gesture-handler/issues/722)
283+ > [ https://github.com/software-mansion/react-native-gesture-handler/issues/722 ] ( https://github.com/software-mansion/react-native-gesture-handler/issues/722 )
284284
285285### xcode 编译报错
286286
0 commit comments