Skip to content

Commit

Permalink
[project] Another solution to fix the crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
seland committed Feb 13, 2018
1 parent 83c9740 commit 96292d8
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 38 deletions.
5 changes: 4 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"presets": ["react-native"]
"presets": ["react-native"],
"plugins": [
"transform-async-to-generator"
]
}
5 changes: 0 additions & 5 deletions App.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ import { Navigation } from 'react-native-navigation';
import configureStore from './src/config/configureStore';
import { registerScreens } from './src/screens/screens';
import { screen, appStyle, tabsStyle } from './src/global/Screens';
import asyncToGenerator from 'async-to-generator'

// Fix for https://github.com/Bit-Nation/BITNATION-Pangea-mobile/issues/166
// Related with https://github.com/facebook/react-native/issues/4844
babelHelpers.asyncToGenerator = asyncToGenerator;

const store = configureStore();
registerScreens(store, Provider);
Expand Down
73 changes: 42 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"dependencies": {
"BITNATION-Pangea-libs": "git+https://github.com/Bit-Nation/BITNATION-Pangea-libs.git#0.3.1",
"assert": "^1.4.1",
"async-to-generator": "^1.1.0",
"awilix": "^3.0.1",
"bignumber.js": "^5.0.0",
"buffer": "^4.9.1",
Expand Down

0 comments on commit 96292d8

Please sign in to comment.