React Native Auto Update For Android In Notification
React Native Android自动下载更新APK,进度条在通知栏中显示
Getting Started
$ npm install git+http://git@github.com/React-Sextant/react-native-android-auto-update.git
$ react-native link react-native-android-auto-update
v0.1.0 usage
v2.3.0 usage
;
v2.4.0 usage
-
完善uiType类型
UiType.CUSTOM
- 如果使用
UiType.CUSTOM
类型,本库custom ui不能通过RN生成,只能自定义XML实现, - 所以默认为对Android有一定基础,没有的话也可以借此机会学习😊,不过本库已为您创建了一个custom xml,
- 如果需要定制化,在本地根android项目中创建一个名为
view_update_dialog_custom.xml
的Layout文件即可覆盖 - 文件路径:android / app / src / main / res / layout / view_update_dialog_custom.xml
- 如果使用
view_update_dialog_custom.xml
元素ID必须按照以下命名
<!--更新标题--><!--更新内容--> <!--apk版本名--><!--apk版本号--> <!--更新按钮文案--><!--取消按钮文案--> ...