public class ModuleSpec
extends java.lang.Object
simple(Class)
or simple(Class, ReactApplicationContext)
} methods.Modifier and Type | Method and Description |
---|---|
javax.inject.Provider<? extends NativeModule> |
getProvider() |
java.lang.Class<? extends NativeModule> |
getType() |
static ModuleSpec |
nativeModuleSpec(java.lang.Class<? extends NativeModule> type,
javax.inject.Provider<? extends NativeModule> provider) |
static ModuleSpec |
simple(java.lang.Class<? extends NativeModule> type)
Simple spec for modules with a default constructor.
|
static ModuleSpec |
simple(java.lang.Class<? extends NativeModule> type,
ReactApplicationContext context)
Simple spec for modules with a constructor taking ReactApplicationContext.
|
static ModuleSpec |
viewManagerSpec(javax.inject.Provider<? extends NativeModule> provider) |
public static ModuleSpec simple(java.lang.Class<? extends NativeModule> type)
public static ModuleSpec simple(java.lang.Class<? extends NativeModule> type, ReactApplicationContext context)
public static ModuleSpec viewManagerSpec(javax.inject.Provider<? extends NativeModule> provider)
public static ModuleSpec nativeModuleSpec(java.lang.Class<? extends NativeModule> type, javax.inject.Provider<? extends NativeModule> provider)
@Nullable public java.lang.Class<? extends NativeModule> getType()
public javax.inject.Provider<? extends NativeModule> getProvider()