mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-09-16 10:31:39 +08:00
Merge branch 'master' of github.com:reactnativecn/react-native-pushy
# Conflicts: # package.json
This commit is contained in:
@@ -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": {
|
||||
|
Reference in New Issue
Block a user