Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Example app to use RN 0.61 #401

Merged
merged 6 commits into from
Sep 25, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Halp
  • Loading branch information
kmagiera committed Sep 25, 2019
commit 408cd150881017f9f5d0f21e7a7f3c879eb54b5e
3 changes: 1 addition & 2 deletions Example/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
"module-resolver",
{
"alias": {
"react-native-gesture-handler": "../",
"react-native-reanimated": "../",
"react": "./node_modules/react",
"react-native": "./node_modules/react-native",
"hammerjs": "../node_modules/hammerjs",
"fbjs": "./node_modules/fbjs",
"hoist-non-react-statics": "./node_modules/hoist-non-react-statics",
"invariant": "./node_modules/invariant",
Expand Down
13 changes: 13 additions & 0 deletions Example/metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ function getBlacklist() {
__dirname
)}/node_modules/*/node_modules/hoist-non-react-statics/*`
),
glob(
`${path.resolve(
__dirname
)}/node_modules/react-native/node_modules/@babel/*`
),
];
return blacklist(nodeModuleDirs);
}
Expand All @@ -22,4 +27,12 @@ module.exports = {
blacklistRE: getBlacklist(),
},
watchFolders: [path.resolve(__dirname, '..')],
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: false,
},
}),
},
};
2 changes: 1 addition & 1 deletion Example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"@react-native-community/eslint-config": "^0.0.5",
"babel-jest": "^24.9.0",
"babel-plugin-module-resolver": "^3.2.0",
"glob-to-regexp": "^0.4.0",
"eslint": "^6.4.0",
"glob-to-regexp": "^0.4.0",
"jest": "^24.9.0",
"metro-react-native-babel-preset": "^0.56.0",
"react-test-renderer": "16.9.0"
Expand Down