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:
Jing Chen 2016-11-04 00:51:52 -07:00 committed by Facebook Github Bot
parent 957ce4baca
commit c296a3ee25
1 changed files with 1 additions and 1 deletions

View File

@ -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'],