Files
react-native-code-push/Examples/CodePushDemoApp/CodePushDemoAppTests/InstallUpdateTests/resources/IsFailedUpdateTestBundleV2.js
Geoffrey Goh 9b87d7e2a8 feedback
2015-12-23 22:53:58 -08:00

26 lines
515 B
JavaScript

"use strict";
import React, {
AppRegistry,
Text,
View,
} from "react-native";
import CodePush from "react-native-code-push";
let IsFailedUpdateTest = React.createClass({
componentDidMount() {
// Should trigger a rollback.
CodePush.restartApp();
},
render() {
return (
<View style={{backgroundColor: "white", padding: 40}}>
<Text>
Testing...
</Text>
</View>
);
}
});
AppRegistry.registerComponent("IsFailedUpdateTest", () => IsFailedUpdateTest);