mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-05 22:38:59 +08:00
Silently fail for requires on Android again until we can fix loading image assets from both repos
Reviewed By: blairvanderhoof Differential Revision: D4128218 fbshipit-source-id: d743cdb7a73efc2f46c42217a49c6094fcd3808a
This commit is contained in:
committed by
Facebook Github Bot
parent
0221b27489
commit
24418677ef
@@ -100,7 +100,7 @@ class Resolver {
|
||||
preferNativePlatform: true,
|
||||
fileWatcher: opts.fileWatcher,
|
||||
cache: opts.cache,
|
||||
shouldThrowOnUnresolvedErrors: () => true,
|
||||
shouldThrowOnUnresolvedErrors: (_, platform) => platform !== 'android',
|
||||
transformCode: opts.transformCode,
|
||||
extraNodeModules: opts.extraNodeModules,
|
||||
assetDependencies: ['react-native/Libraries/Image/AssetRegistry'],
|
||||
|
||||
Reference in New Issue
Block a user