-
- All Implemented Interfaces:
-
com.facebook.react.bridge.NativeModule,com.facebook.react.bridge.ReactModuleWithSpec,com.facebook.react.turbomodule.core.interfaces.TurboModule
public class ShareModule extends NativeShareModuleSpec
Intent module. Launch other activities or open URLs.
-
-
Constructor Summary
Constructors Constructor Description ShareModule(ReactApplicationContext reactContext)
-
Method Summary
Modifier and Type Method Description StringgetName()voidshare(ReadableMap content, String dialogTitle, Promise promise)Open a chooser dialog to send text content to other apps. -
Methods inherited from class com.facebook.fbreact.specs.NativeShareModuleSpec
share -
Methods inherited from class com.facebook.react.bridge.BaseJavaModule
canOverrideExistingModule, getConstants, hasConstants, initialize, invalidate, onCatalystInstanceDestroy -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ShareModule
ShareModule(ReactApplicationContext reactContext)
-
-
Method Detail
-
share
void share(ReadableMap content, String dialogTitle, Promise promise)
Open a chooser dialog to send text content to other apps.
Refer http://developer.android.com/intl/ko/training/sharing/send.html
- Parameters:
content- the data to senddialogTitle- the title of the chooser dialog
-
-
-
-