Skip to content

Commit

Permalink
Don't ask me why, codepush is working with react-navigation now.
Browse files Browse the repository at this point in the history
  • Loading branch information
palaniraja committed Mar 14, 2017
1 parent 594dee3 commit 0fb2388
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
50 changes: 25 additions & 25 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,42 +32,42 @@ import NoteScreen from './src/note'



export default class HomeScreen extends Component {
// export default class HomeScreen extends Component {

static navigationOptions = {
title: "♬♪♫🎶🎵🎼",
};
// static navigationOptions = {
// title: "♬♪♫🎶🎵🎼",
// };


componentDidMount() {
// componentDidMount() {

// codePush.sync({installMode: 0});
// // codePush.sync({installMode: 0});

var updateDialogOptions = {
updateTitle: "Update",
optionalUpdateMessage: "New version of the app is available. Install?",
optionalIgnoreButtonLabel: "Later",
optionalInstallButtonLabel: "Yes",
};
// var updateDialogOptions = {
// updateTitle: "Update",
// optionalUpdateMessage: "New version of the app is available. Install?",
// optionalIgnoreButtonLabel: "Later",
// optionalInstallButtonLabel: "Yes",
// };

codePush.sync({ updateDialog: updateDialogOptions});
}
// codePush.sync({ updateDialog: updateDialogOptions});
// }

render() {
return (
<View>
<Text></Text>
<Text> Release 18 - Test in 4.4</Text>
</View>
);
}
}
// render() {
// return (
// <View>
// <Text></Text>
// <Text> Release 18 - Test in 4.4</Text>
// </View>
// );
// }
// }


const App = StackNavigator({
Menu: { screen: MenuScreen },
Note: { screen: NoteScreen },
});

// AppRegistry.registerComponent('mnotes', () => codePush(codePushOptions)(App));
AppRegistry.registerComponent('mnotes', () => HomeScreen);
AppRegistry.registerComponent('mnotes', () => codePush(App));
// AppRegistry.registerComponent('mnotes', () => HomeScreen);
4 changes: 2 additions & 2 deletions src/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import {



var appVer = "2017.03.14#3";
var buildVer = "faccb";
var appVer = "2017.03.14#5";
var buildVer = "594dee3";

// ♬♪♫🎶🎵🎼

Expand Down

0 comments on commit 0fb2388

Please sign in to comment.