Package 

Class ToastModule

  • All Implemented Interfaces:
    com.facebook.react.bridge.NativeModule , com.facebook.react.bridge.ReactModuleWithSpec , com.facebook.react.turbomodule.core.interfaces.TurboModule

    
    public class ToastModule
    extends NativeToastAndroidSpec
                        

    NativeModule that allows JS to show an Android Toast.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static String NAME
    • Method Summary

      Modifier and Type Method Description
      String getName()
      Map<String, Object> getTypedExportedConstants()
      void show(String message, double durationDouble)
      void showWithGravity(String message, double durationDouble, double gravityDouble)
      void showWithGravityAndOffset(String message, double durationDouble, double gravityDouble, double xOffsetDouble, double yOffsetDouble)
      • Methods inherited from class com.facebook.fbreact.specs.NativeToastAndroidSpec

        getConstants, show, showWithGravity, showWithGravityAndOffset
      • Methods inherited from class com.facebook.react.bridge.BaseJavaModule

        canOverrideExistingModule, hasConstants, initialize, invalidate, onCatalystInstanceDestroy
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait