File tree 2 files changed +10
-1
lines changed
packages/umi-preset-react-native/src/plugins/features
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ _上文未列出的[umi 配置](https://umijs.org/config)对 **umi-preset-react-
200
200
201
201
``` text
202
202
# umi-react-native
203
- .umi
203
+ tmp
204
204
index.js
205
205
metro.config.js
206
206
babel.config.js
Original file line number Diff line number Diff line change @@ -26,6 +26,15 @@ export default (api: IApi) => {
26
26
appKey = appJson . name ;
27
27
} catch ( ignored ) { }
28
28
29
+ /**
30
+ * Metro Haste Module无法加载 Dot Folder: https://github.com/facebook/metro/issues/325
31
+ *
32
+ * 这个问题很诡异:
33
+ * 使用 React Native CLI 时,可以加载成功;
34
+ * 但 expo 中 的 metro 总是加载不到路径中包含"."的文件夹。
35
+ */
36
+ api . modifyPaths ( ( paths ) => ( { ...paths , absTmpPath : join ( absSrcPath , 'tmp' ) } ) ) ;
37
+
29
38
// umi-preset-react-native 扩展配置
30
39
api . describe ( {
31
40
key : 'reactNative' ,
You can’t perform that action at this time.
0 commit comments