mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-11 08:04:23 +08:00
Merge pull request #411 from Microsoft/remove-rn-button
Remove dependency on react-native-button from sample app
This commit is contained in:
@@ -10,7 +10,6 @@ import React, {
|
||||
View,
|
||||
} from "react-native";
|
||||
|
||||
import Button from "react-native-button";
|
||||
import CodePush from "react-native-code-push";
|
||||
|
||||
let CodePushDemoApp = React.createClass({
|
||||
@@ -106,9 +105,9 @@ let CodePushDemoApp = React.createClass({
|
||||
);
|
||||
} else {
|
||||
syncButton = (
|
||||
<Button style={{color: 'green'}} onPress={this.sync}>
|
||||
Start Sync!
|
||||
</Button>
|
||||
<TouchableOpacity onPress={this.sync}>
|
||||
<Text style={{color: 'green', fontSize: 17}}>Start Sync!</Text>
|
||||
</TouchableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -127,9 +126,9 @@ let CodePushDemoApp = React.createClass({
|
||||
{syncView}
|
||||
{progressView}
|
||||
<Image style={styles.image} resizeMode={Image.resizeMode.contain} source={require('./images/laptop_phone_howitworks.png')}/>
|
||||
<Button onPress={this.toggleAllowRestart}>
|
||||
Restart { this.state.restartAllowed ? "allowed" : "forbidden"}
|
||||
</Button>
|
||||
<TouchableOpacity onPress={this.toggleAllowRestart}>
|
||||
<Text style={{color: 'blue', fontSize: 17}}>Restart { this.state.restartAllowed ? "allowed" : "forbidden"}</Text>
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"react-native": "0.19.0",
|
||||
"react-native-button": "^1.2.0",
|
||||
"react-native-code-push": "file:../../"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
Reference in New Issue
Block a user