1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

Merge branch 'master' of github.com:reactnativecn/react-native-pushy

# Conflicts:
#	package.json
This commit is contained in:
sunnylqm 2020-09-16 17:35:16 +08:00
commit 37a1a5a18b
2 changed files with 3 additions and 2 deletions

View File

@ -59,7 +59,7 @@ export default class App extends Component {
try { try {
const hash = await downloadUpdate(info, { const hash = await downloadUpdate(info, {
onDownloadProgress: ({received, total}) => { onDownloadProgress: ({received, total}) => {
setState({ this.setState({
received, received,
total, total,
}); });
@ -122,6 +122,7 @@ export default class App extends Component {
}; };
render() { render() {
const { received, total } = this.state;
return ( return (
<View style={styles.container}> <View style={styles.container}>
<Text style={styles.welcome}>欢迎使用热更新服务</Text> <Text style={styles.welcome}>欢迎使用热更新服务</Text>

View File

@ -1,6 +1,6 @@
{ {
"name": "react-native-update", "name": "react-native-update",
"version": "5.8.0-beta1", "version": "5.8.0",
"description": "react-native hot update", "description": "react-native hot update",
"main": "lib/index.js", "main": "lib/index.js",
"scripts": { "scripts": {