Skip to content
This repository was archived by the owner on Jul 13, 2022. It is now read-only.

Commit 1996983

Browse files
committed
config
1 parent ebf146b commit 1996983

File tree

3 files changed

+449
-220
lines changed

3 files changed

+449
-220
lines changed

CanvasExample/metro.config.js

+9-3
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,19 @@ const _ = require('lodash');
1414
const { useLocalReanimatedModule, useBaseImplementation, resolveReanimatedPath, resolveGestureHandlerPath, logInfo } = require('./example.config');
1515

1616
const watchFolders = [path.resolve(__dirname, '..')];
17-
const blacklisters = []; //path.resolve(__dirname, '../node_modules'),
17+
const blacklisters = [
18+
path.resolve(__dirname, '..', 'android'),
19+
path.resolve(__dirname, '..', 'ios'),
20+
path.resolve(__dirname, 'android'),
21+
path.resolve(__dirname, 'ios'),
22+
]; //path.resolve(__dirname, '../node_modules'),
1823

1924
const REANIMATED = 'react-native-reanimated';
2025
const GH = 'react-native-gesture-handler';
2126
const extraNodeModules = {
2227
[REANIMATED]: resolveReanimatedPath(),
23-
[GH]: resolveGestureHandlerPath(false)
28+
[GH]: resolveGestureHandlerPath(false),
29+
lodash: path.resolve(__dirname, 'node_modules', 'lodash')
2430
};
2531

2632
logInfo();
@@ -39,7 +45,7 @@ if (useBaseImplementation) {
3945

4046
const config = {
4147
resolver: {
42-
//blacklistRE: blacklist(blacklisters),
48+
blacklistRE: blacklist(blacklisters),
4349
extraNodeModules
4450
},
4551
watchFolders,

CanvasExample/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"lodash": "^4.17.15",
1717
"react": "16.9.0",
1818
"react-native": "0.61.5",
19-
"react-native-gesture-handler": "^1.5.2",
19+
"react-native-gesture-handler": "github:ShaMan123/react-native-gesture-handler#drag-gesture-handler",
2020
"react-native-reanimated": "github:ShaMan123/react-native-reanimated",
2121
"react-native-screens": "^2.3.0",
2222
"react-native-view-shot": "^3.0.2",
@@ -43,4 +43,4 @@
4343
"jest": {
4444
"preset": "react-native"
4545
}
46-
}
46+
}

0 commit comments

Comments
 (0)