mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-04 17:39:48 +08:00
move NativeModule initialization off UI thread
Summary: Initializing natives modules on the UI thread blocks the JS thread if the UI thread is busy. Reviewed By: yungsters Differential Revision: D4611211 fbshipit-source-id: cd4fb9cb5e52a478b6692b784cfd9e3bf34c0d34
This commit is contained in:
committed by
Facebook Github Bot
parent
e32e4d9711
commit
b085215237
@@ -139,6 +139,9 @@ public class NativeModuleRegistryBuilder {
|
||||
}
|
||||
}
|
||||
|
||||
return new NativeModuleRegistry(mModules, batchCompleteListenerModules);
|
||||
return new NativeModuleRegistry(
|
||||
mReactApplicationContext,
|
||||
mModules,
|
||||
batchCompleteListenerModules);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user