Files
react-native-reanimated/Example/metro.config.js
Lorenzo Sciandra 2ee7c5da96 Update Example folder to RN0.57 (#117)
👋

This morning I tried testing the Examples via Snack, but since it wasn't working I tried to have them work in my local folder... and well, I ended up wanting to test with RN0.57 😅

I didn't have to modify anything about the "main" lib, but I thikn it would be good to -as a separate PR- try to update it too to newer versions of both JS and Native sides.

The changes to the gradle files have been done [following this](https://github.com/ncuillery/rn-diff/compare/rn-0.55.4...rn-0.57.0) comparison map.

I've tested it with both iOS simulator and an Android device and it works fine on both (aside from a crash I'll report separately if I can manage to repro "outside" of the Examples)
2018-10-11 10:52:42 +02:00

22 lines
601 B
JavaScript

const blacklist = require('metro-config/src/defaults/blacklist');
const path = require('path');
const cwd = path.resolve(__dirname);
const glob = require('glob-to-regexp');
function getBlacklist() {
const nodeModuleDirs = [
glob(`${path.resolve(__dirname, '..')}/node_modules/*`),
glob(`${path.resolve(__dirname)}/node_modules/metro/node_modules/fbjs/*`),
];
return blacklist(nodeModuleDirs);
}
module.exports = {
resolver: {
blacklistRE: getBlacklist(),
providesModuleNodeModules: ['react-native', 'react', 'fbjs'],
},
watchFolders: [path.resolve(__dirname, '..')],
};