Convert ReactPackages in FB4a to switch-case

Reviewed By: achen1

Differential Revision: D9511962

fbshipit-source-id: ea42b25f13b157866057d96d026317098e47ea63
This commit is contained in:
Ram N
2018-09-06 09:21:23 -07:00
committed by Facebook Github Bot
parent 0df92afc1c
commit 2f79960a69
3 changed files with 140 additions and 7 deletions

View File

@@ -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(