Files
react-native-code-push/Examples/CodePushDemoApp/CodePushDemoAppTests/InstallUpdateTests/resources/IsFailedUpdateTestBundleV2.js
Geoffrey Goh ebd93b53eb es7
2015-12-23 21:24:29 -08:00

28 lines
528 B
JavaScript

"use strict";
import React from "react-native";
import CodePush from "react-native-code-push";
let {
AppRegistry,
Text,
View,
} = React;
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);