Merge branch 'master' of github.com:reactnativecn/react-native-pushy
# Conflicts: # package.json
This commit is contained in:
commit
37a1a5a18b
@ -59,7 +59,7 @@ export default class App extends Component {
|
||||
try {
|
||||
const hash = await downloadUpdate(info, {
|
||||
onDownloadProgress: ({received, total}) => {
|
||||
setState({
|
||||
this.setState({
|
||||
received,
|
||||
total,
|
||||
});
|
||||
@ -122,6 +122,7 @@ export default class App extends Component {
|
||||
};
|
||||
|
||||
render() {
|
||||
const { received, total } = this.state;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<Text style={styles.welcome}>欢迎使用热更新服务</Text>
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-native-update",
|
||||
"version": "5.8.0-beta1",
|
||||
"version": "5.8.0",
|
||||
"description": "react-native hot update",
|
||||
"main": "lib/index.js",
|
||||
"scripts": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user