mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-03 22:48:25 +08:00
Convert ReactPackages in FB4a to switch-case
Reviewed By: achen1 Differential Revision: D9511962 fbshipit-source-id: ea42b25f13b157866057d96d026317098e47ea63
This commit is contained in:
committed by
Facebook Github Bot
parent
0df92afc1c
commit
2f79960a69
@@ -32,6 +32,9 @@ public class NativeModuleRegistryBuilder {
|
||||
if (reactPackage instanceof LazyReactPackage) {
|
||||
moduleHolders =
|
||||
((LazyReactPackage) reactPackage).getNativeModuleIterator(mReactApplicationContext);
|
||||
} else if (reactPackage instanceof TurboReactPackage) {
|
||||
moduleHolders =
|
||||
((TurboReactPackage) reactPackage).getNativeModuleIterator(mReactApplicationContext);
|
||||
} else {
|
||||
moduleHolders =
|
||||
ReactPackageHelper.getNativeModuleIterator(
|
||||
|
||||
Reference in New Issue
Block a user