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 {
|
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>
|
||||||
|
@ -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": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user