Package 

Annotation ReactModule

    • Method Summary

      Modifier and Type Method Description
      abstract String name() Name used to {@code require()} this module from JavaScript.
      abstract boolean canOverrideExistingModule() True if you intend to override some other native module that was registered e.g.
      abstract boolean needsEagerInit() Whether this module needs to be loaded immediately.
      abstract boolean hasConstants() Whether this module has constants to add, defaults to true as that is safer for when a correctannotation is not included
      abstract boolean isCxxModule() Indicates if a module is a C++ module or a Java Module
      • Methods inherited from class java.lang.annotation.Annotation

        annotationType, equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • name

         abstract String name()

        Name used to {@code require()} this module from JavaScript.

      • canOverrideExistingModule

         abstract boolean canOverrideExistingModule()

        True if you intend to override some other native module that was registered e.g. as part of adifferent package (such as the core one). Trying to override without returning true from thismethod is considered an error and will throw an exception during initialization. By default allmodules return false.

      • needsEagerInit

         abstract boolean needsEagerInit()

        Whether this module needs to be loaded immediately.

      • hasConstants

         abstract boolean hasConstants()

        Whether this module has constants to add, defaults to true as that is safer for when a correctannotation is not included

      • isCxxModule

         abstract boolean isCxxModule()

        Indicates if a module is a C++ module or a Java Module