This repository was archived by the owner on May 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import React, {
10
10
View ,
11
11
} from "react-native" ;
12
12
13
- import Button from "react-native-button" ;
14
13
import CodePush from "react-native-code-push" ;
15
14
16
15
let CodePushDemoApp = React . createClass ( {
@@ -106,9 +105,9 @@ let CodePushDemoApp = React.createClass({
106
105
) ;
107
106
} else {
108
107
syncButton = (
109
- < Button style = { { color : 'green' } } onPress = { this . sync } >
110
- Start Sync!
111
- </ Button >
108
+ < TouchableOpacity onPress = { this . sync } >
109
+ < Text style = { { color : 'green' , fontSize : 17 } } > Start Sync!</ Text >
110
+ </ TouchableOpacity >
112
111
) ;
113
112
}
114
113
@@ -127,9 +126,9 @@ let CodePushDemoApp = React.createClass({
127
126
{ syncView }
128
127
{ progressView }
129
128
< Image style = { styles . image } resizeMode = { Image . resizeMode . contain } source = { require ( './images/laptop_phone_howitworks.png' ) } />
130
- < Button onPress = { this . toggleAllowRestart } >
131
- Restart { this . state . restartAllowed ? "allowed" : "forbidden" }
132
- </ Button >
129
+ < TouchableOpacity onPress = { this . toggleAllowRestart } >
130
+ < Text style = { { color : 'blue' , fontSize : 17 } } > Restart { this . state . restartAllowed ? "allowed" : "forbidden" } </ Text >
131
+ </ TouchableOpacity >
133
132
</ View >
134
133
) ;
135
134
}
Original file line number Diff line number Diff line change 7
7
},
8
8
"dependencies" : {
9
9
"react-native" : " 0.19.0" ,
10
- "react-native-button" : " ^1.2.0" ,
11
10
"react-native-code-push" : " file:../../"
12
11
},
13
12
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments