-
- 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.
-
-
Constructor Summary
Constructors Constructor Description ToastModule(ReactApplicationContext reactContext)
-
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
-
-
Constructor Detail
-
ToastModule
ToastModule(ReactApplicationContext reactContext)
-
-
Method Detail
-
getTypedExportedConstants
Map<String, Object> getTypedExportedConstants()
-
showWithGravity
void showWithGravity(String message, double durationDouble, double gravityDouble)
-
showWithGravityAndOffset
void showWithGravityAndOffset(String message, double durationDouble, double gravityDouble, double xOffsetDouble, double yOffsetDouble)
-
-
-
-