Skip to content

Commit

Permalink
Get AppName from app.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Sworup Shakya committed Feb 11, 2019
1 parent 6571969 commit 85a592a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "mSupplyMobile",
"displayName": "mSupplyMobile"
}
"displayName": "mSupply Mobile"
}
3 changes: 2 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { persistStore, persistReducer } from 'redux-persist';
import { ErrorHandler } from 'redux-persist-error-handler';
import { Client as BugsnagClient } from 'bugsnag-react-native';

import { name as appName } from '../app.json';
import MSupplyMobileApp from './mSupplyMobileApp';
import { reducers } from './reducers';

Expand Down Expand Up @@ -53,4 +54,4 @@ function App() {
);
}

AppRegistry.registerComponent('mSupplyMobile', () => App);
AppRegistry.registerComponent(appName, () => App);

0 comments on commit 85a592a

Please sign in to comment.