Package 

Class ShareModule

  • 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.

    • Field Summary

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

      Modifier and Type Method Description
      String getName()
      void share(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
    • 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 send
        dialogTitle - the title of the chooser dialog