Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 09ffd38

Browse files
authored
Merge pull request #411 from Microsoft/remove-rn-button
Remove dependency on react-native-button from sample app
2 parents fa0914d + ef0c697 commit 09ffd38

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

Examples/CodePushDemoApp/crossplatformdemo.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import React, {
1010
View,
1111
} from "react-native";
1212

13-
import Button from "react-native-button";
1413
import CodePush from "react-native-code-push";
1514

1615
let CodePushDemoApp = React.createClass({
@@ -106,9 +105,9 @@ let CodePushDemoApp = React.createClass({
106105
);
107106
} else {
108107
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>
112111
);
113112
}
114113

@@ -127,9 +126,9 @@ let CodePushDemoApp = React.createClass({
127126
{syncView}
128127
{progressView}
129128
<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>
133132
</View>
134133
);
135134
}

Examples/CodePushDemoApp/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
},
88
"dependencies": {
99
"react-native": "0.19.0",
10-
"react-native-button": "^1.2.0",
1110
"react-native-code-push": "file:../../"
1211
},
1312
"devDependencies": {

0 commit comments

Comments
 (0)