mirror of
				https://gitcode.com/gh_mirrors/re/react-native-pushy.git
				synced 2025-10-31 21:33:12 +08:00 
			
		
		
		
	文档优化
This commit is contained in:
		
							
								
								
									
										51
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										51
									
								
								README.md
									
									
									
									
									
								
							| @@ -1,35 +1,10 @@ | ||||
| # react-native-update [](http://badge.fury.io/js/react-native-update) | ||||
|  | ||||
| 本组件是面向 React Native 提供热更新功能的组件,建议结合[Update 服务](https://update.reactnative.cn/)使用。 | ||||
| 本组件是面向 React Native 提供热更新功能的组件,请结合[Update 服务](https://update.reactnative.cn/)使用。 | ||||
|  | ||||
| <details> | ||||
| <summary> | ||||
| 注意,在 iOS 上使用热更新有被拒的可能。被拒之后可以按此步骤单独屏蔽 iOS 端(`react-native-update`版本需 >= 5.3.2): | ||||
| </summary> | ||||
| ### 快速开始 | ||||
|  | ||||
| 1. 如果 RN 版本>=0.60,在项目根目录下编辑或创建 react-native.config.js,添加如下内容 | ||||
|  | ||||
| ```js | ||||
| // react-native.config.js | ||||
| module.exports = { | ||||
|   dependencies: { | ||||
|     'react-native-update': { | ||||
|       platforms: { | ||||
|         ios: null, // 阻止ios模块自动链接 | ||||
|       }, | ||||
|     }, | ||||
|   }, | ||||
| }; | ||||
| ``` | ||||
|  | ||||
| 2. 如果在原生代码端尚未配置,则跳过下面文档中的 ios 端的配置。如果已经配置,则按文档的步骤反向操作(添加的 ios 代码删去)。 | ||||
| 3. 如果是 0.60 以上版本或使用了 cocoapods,在 ios 目录中再次运行 pod install,确保 Podfile 和 Podfile.lock 中都没有'react-native-update'。如果 RN 版本<0.60,则运行`react-native unlink react-native-update`。 | ||||
| 4. 在 js 代码里调用 checkUpdate()方法前,判断 Platform.OS,如果是 ios 平台则直接 return 跳过。 | ||||
| </details> | ||||
|  | ||||
| ### 最近更新 | ||||
|  | ||||
| 请查阅[最近更新文档](CHANGELOG.md)。 | ||||
| 请查看[文档](/docs) | ||||
|  | ||||
| ### 优势 | ||||
|  | ||||
| @@ -39,26 +14,6 @@ module.exports = { | ||||
| 4. meta 信息及开放 API,提供更高扩展性。 | ||||
| 5. 跨越多个版本进行更新时,只需要下载**一个更新包**,不需要逐版本依次更新。 | ||||
|  | ||||
| ### 安装与快速入门 | ||||
|  | ||||
| 请查阅 | ||||
|  | ||||
| - [文档-快速入门-准备工作](docs/guide.md)。 | ||||
|  | ||||
| - [文档-快速入门-添加热更新功能](docs/guide2.md)。 | ||||
|  | ||||
| - [文档-快速入门-发布版本](docs/guide3.md)。 | ||||
|  | ||||
| - [文档-常见问题与高级指南](docs/faq_advance.md)。 | ||||
|  | ||||
| ### 命令行工具 | ||||
|  | ||||
| 请查阅[文档-命令行工具](docs/cli.md)。 | ||||
|  | ||||
| ### API 接口 | ||||
|  | ||||
| 请查阅[文档-API 接口](docs/api.md)。 | ||||
|  | ||||
| ### 本地开发 | ||||
|  | ||||
| ``` | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sunnylqm
					sunnylqm