-
public interface TurboModuleRegistry
Interface to allow for creating and retrieving TurboModules.
-
-
Method Summary
Modifier and Type Method Description abstract TurboModule
getModule(String moduleName)
Return the TurboModule instance that has that name `moduleName`. abstract Collection<TurboModule>
getModules()
Get all instantiated TurboModules. abstract boolean
hasModule(String moduleName)
Has the TurboModule with name `moduleName` been instantiated? abstract List<String>
getEagerInitModuleNames()
Return the names of all the NativeModules that are supposed to be eagerly initialized. -
-
Method Detail
-
getModule
@Nullable() abstract TurboModule getModule(String moduleName)
Return the TurboModule instance that has that name `moduleName`. If the `moduleName`TurboModule hasn't been instantiated, instantiate it. If no TurboModule is registered under`moduleName`, return null.
-
getModules
abstract Collection<TurboModule> getModules()
Get all instantiated TurboModules.
-
hasModule
abstract boolean hasModule(String moduleName)
Has the TurboModule with name `moduleName` been instantiated?
-
getEagerInitModuleNames
abstract List<String> getEagerInitModuleNames()
Return the names of all the NativeModules that are supposed to be eagerly initialized. Bycalling getModule on each name, this allows the application to eagerly initialize itsNativeModules.
-
-
-
-