Skip to content

Commit 9b7bbcf

Browse files
committed
docs: readme
1 parent f6d6567 commit 9b7bbcf

File tree

4 files changed

+34
-41
lines changed

4 files changed

+34
-41
lines changed

README.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
- [ ] 上架 App Store、Google Play
4747
- [ ] 通过 cheerio,获取更多的数据,开发交互功能
4848

49-
## 完成
49+
## Done
5050

5151
- [x] 升级提醒
5252
- [x] 升级 RN 到到 **0.71.3**
@@ -71,7 +71,7 @@
7171

7272
## Features
7373

74-
1. 基于 React Native 0.70.4 版本。
74+
1. 基于 React Native 0.71.3 版本。
7575
2. 引入 TypeScript 强类型检查,保证维护性、可读性、稳定性。
7676
3. eslint 代码规范检查,prettier 代码美化、Husky 作为 git hooks 进行代码格式化、规范校验。
7777
4. i18n 集成,支持多国语言。实现了语言切换功能。
@@ -106,7 +106,7 @@
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

243244
1. [Create a bugsnag account](https://app.bugsnag.com/user/new).
244-
245245
2. 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
264264
npm 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

ios/app.xcodeproj/project.pbxproj

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@
485485
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
486486
CLANG_ENABLE_MODULES = YES;
487487
CODE_SIGN_IDENTITY = "iPhone Distribution";
488-
CURRENT_PROJECT_VERSION = 28;
488+
CURRENT_PROJECT_VERSION = 29;
489489
DEVELOPMENT_TEAM = ED4U2734MB;
490490
ENABLE_BITCODE = NO;
491491
INFOPLIST_FILE = app/Info.plist;
@@ -519,10 +519,11 @@
519519
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
520520
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
521521
CLANG_ENABLE_MODULES = YES;
522-
CODE_SIGN_IDENTITY = "iPhone Distribution";
522+
CODE_SIGN_IDENTITY = "Apple Development";
523+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
523524
CODE_SIGN_STYLE = Manual;
524-
CURRENT_PROJECT_VERSION = 28;
525-
DEVELOPMENT_TEAM = ED4U2734MB;
525+
CURRENT_PROJECT_VERSION = 29;
526+
DEVELOPMENT_TEAM = "";
526527
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = ED4U2734MB;
527528
INFOPLIST_FILE = app/Info.plist;
528529
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
@@ -539,8 +540,8 @@
539540
);
540541
PRODUCT_BUNDLE_IDENTIFIER = github.funnyzak.v2ex;
541542
PRODUCT_NAME = app;
542-
PROVISIONING_PROFILE_SPECIFIER = "v2ex dist";
543-
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "v2ex dist";
543+
PROVISIONING_PROFILE_SPECIFIER = "";
544+
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "v2ex app dis m1";
544545
SWIFT_VER6.0 = SWIFT_VER6.0;
545546
SWIFT_VERSION = 6.0;
546547
TARGETED_DEVICE_FAMILY = "1,2";

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@
119119
"pod-install": "0.1.38",
120120
"postinstall-postinstall": "2.1.0",
121121
"prettier": "2.8.0",
122-
"react-devtools": "4.27.1",
123-
"react-devtools-core": "4.27.1",
122+
"react-devtools": "4.27.2",
123+
"react-devtools-core": "4.27.2",
124124
"react-test-renderer": "18.2.0",
125125
"rimraf": "3.0.2",
126126
"typescript": "4.9.5"

yarn.lock

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8849,32 +8849,24 @@ rc@1.2.8, rc@^1.0.1, rc@^1.1.6:
88498849
minimist "^1.2.0"
88508850
strip-json-comments "~2.0.1"
88518851

8852-
react-devtools-core@4.27.1:
8853-
version "4.27.1"
8854-
resolved "https://registry.yarnpkg.com/react-devtools-core/-/react-devtools-core-4.27.1.tgz#167aa174383c65786cbb7e965a5b39c702f0a2d3"
8855-
integrity sha512-qXhcxxDWiFmFAOq48jts9YQYe1+wVoUXzJTlY4jbaATzyio6dd6CUGu3dXBhREeVgpZ+y4kg6vFJzIOZh6vY2w==
8856-
dependencies:
8857-
shell-quote "^1.6.1"
8858-
ws "^7"
8859-
8860-
react-devtools-core@^4.26.1:
8852+
react-devtools-core@4.27.2, react-devtools-core@^4.26.1:
88618853
version "4.27.2"
88628854
resolved "https://registry.yarnpkg.com/react-devtools-core/-/react-devtools-core-4.27.2.tgz#d20fc57e258c656eedabafc2c851d38b33583148"
88638855
integrity sha512-8SzmIkpO87alD7Xr6gWIEa1jHkMjawOZ+6egjazlnjB4UUcbnzGDf/vBJ4BzGuWWEM+pzrxuzsPpcMqlQkYK2g==
88648856
dependencies:
88658857
shell-quote "^1.6.1"
88668858
ws "^7"
88678859

8868-
react-devtools@4.27.1:
8869-
version "4.27.1"
8870-
resolved "https://registry.yarnpkg.com/react-devtools/-/react-devtools-4.27.1.tgz#ef6a8bb26d4a0cd2d0c56222aaca5f8534f27953"
8871-
integrity sha512-v+KnH7VUPQXyl08p8dn91RR3sEb6bM0XhzJjkbNfeEaf0ziESJFg1Ms9l3jBwhgytXmEjIKM5LZOVg9Ov/2LJg==
8860+
react-devtools@4.27.2:
8861+
version "4.27.2"
8862+
resolved "https://registry.yarnpkg.com/react-devtools/-/react-devtools-4.27.2.tgz#e68a4c6d75a3148c1ee6be2ea999db2ba5a339cd"
8863+
integrity sha512-qfXhvTJhYEZm/RJzTE3uyKRDRk6Tx5ijBuU4f0STHaRol/LcCFDj293w3IWGkOUGv4OvLAPpT5mAH5p7XuueUQ==
88728864
dependencies:
88738865
cross-spawn "^5.0.1"
88748866
electron "^11.1.0"
88758867
ip "^1.1.4"
88768868
minimist "^1.2.3"
8877-
react-devtools-core "4.27.1"
8869+
react-devtools-core "4.27.2"
88788870
update-notifier "^2.1.0"
88798871

88808872
react-freeze@^1.0.0:

0 commit comments

Comments
 (0)