Skip to content

Commit

Permalink
appicon and splash screen images updated. codepush should prompt from…
Browse files Browse the repository at this point in the history
… now on?
  • Loading branch information
palaniraja committed Mar 18, 2017
1 parent bb6633b commit ed053b3
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 5 deletions.
4 changes: 2 additions & 2 deletions android/app/src/main/res/drawable/background_splash.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">

<item
android:drawable="@color/gray"/>
android:drawable="@color/white"/>

<item>
<bitmap
android:gravity="center"
android:src="@mipmap/ic_launcher"/>
android:src="@mipmap/splashbg"/>
</item>

</layer-list>
Binary file modified android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android/app/src/main/res/mipmap-hdpi/splashbg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android/app/src/main/res/mipmap-mdpi/splashbg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion android/app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="gray">#444440</color>
<color name="white">#fff</color>
</resources>
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
StackNavigator,
} from 'react-navigation';

import codePush from "react-native-code-push";




Expand All @@ -31,4 +31,4 @@ const App = StackNavigator({
Options: { screen: OptionsScreen },
});

AppRegistry.registerComponent('mnotes', () => codePush(App));
AppRegistry.registerComponent('mnotes', () => App);
13 changes: 13 additions & 0 deletions src/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import {
} from 'react-native';


import codePush from "react-native-code-push";


var appVer = "v0.2";
var buildVer = "2017.03.18";
Expand Down Expand Up @@ -45,6 +47,17 @@ static navigationOptions = {
}


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

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

_pressRow(rowId){
console.log('rowId: ', rowId);

Expand Down

0 comments on commit ed053b3

Please sign in to comment.