Update guide
This commit is contained in:
parent
7e11356cb9
commit
1e9650478d
@ -83,6 +83,9 @@ pod 'react-native-update', path: '../node_modules/react-native-update'
|
||||
|
||||
### Android
|
||||
|
||||
|
||||
<details>
|
||||
<summary>RN < 0.60</summary>
|
||||
1. 在`android/settings.gradle`中添加如下代码:
|
||||
```
|
||||
include ':react-native-update'
|
||||
@ -97,6 +100,7 @@ pod 'react-native-update', path: '../node_modules/react-native-update'
|
||||
3. 打开`android/app/src/main/java/[...]/MainApplication.java`,
|
||||
- 在文件开头增加 `import cn.reactnative.modules.update.UpdatePackage;`
|
||||
- 在`getPackages()` 方法中增加 `new UpdatePackage()`(注意上一行可能要增加一个逗号)
|
||||
</details>
|
||||
|
||||
## 二、配置Bundle URL
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user