This repository was archived by the owner on May 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ var Button = require("react-native-button");
18
18
var CodePush = require ( 'react-native-code-push' ) ;
19
19
20
20
var CodePushDemoApp = React . createClass ( {
21
+
22
+ getInitialState : function ( ) {
23
+ return { } ;
24
+ } ,
21
25
componentDidMount : function ( ) {
22
26
this . checkUpdate ( ) ;
23
27
} ,
@@ -32,9 +36,10 @@ var CodePushDemoApp = React.createClass({
32
36
} ,
33
37
handlePress : function ( ) {
34
38
this . state . update . download ( ) . done ( ( localPackage ) => {
35
- localPackage . apply ( 1000 ) . done ( ) ;
39
+ localPackage . apply ( ) . done ( ) ;
36
40
} ) ;
37
41
} ,
42
+
38
43
render : function ( ) {
39
44
var updateView ;
40
45
if ( this . state . update ) {
@@ -50,14 +55,7 @@ var CodePushDemoApp = React.createClass({
50
55
return (
51
56
< View style = { styles . container } >
52
57
< Text style = { styles . welcome } >
53
- Welcome to React Native!
54
- </ Text >
55
- < Text style = { styles . instructions } >
56
- To get started, edit index.ios.js
57
- </ Text >
58
- < Text style = { styles . instructions } >
59
- Press Cmd+R to reload,{ '\n' }
60
- Cmd+D or shake for dev menu
58
+ Welcome to Code Push!
61
59
</ Text >
62
60
{ updateView }
63
61
</ View >
You can’t perform that action at this time.
0 commit comments