@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface ReactModule
BaseJavaModule
s to describe properties for that module.Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
name
Name used to
require() this module from JavaScript. |
Modifier and Type | Optional Element and Description |
---|---|
boolean |
canOverrideExistingModule
True if you intend to override some other native module that was registered e.g.
|
boolean |
hasConstants
Whether this module has constants to add, defaults to true as that is safer for when a
correct annotation is not included
|
boolean |
isCxxModule
Indicates if a module is a C++ module or a Java Module
|
boolean |
needsEagerInit
Whether this module needs to be loaded immediately.
|
public abstract java.lang.String name
require()
this module from JavaScript.public abstract boolean canOverrideExistingModule
public abstract boolean needsEagerInit