React-native-share-actions
React Native show share actions for Android and iOS.
This module uses ActionSheetIOS for iOS and a native bridge for Android.
Installation
npm install react-native-share-actions
react-native link
Android manual Installation
In your android/app/build.gradle
add:
dependencies {
compile project(':react-native-share-actions')
}
In your android/settings.gradle
add:
include ':react-native-share-actions'
project(':react-native-share-actions').projectDir = file('../node_modules/react-native-share-actions/android')
In your MainApplication.java
add:
@Overrideprotected List<ReactPackage> { return Arrays.<ReactPackage>;}
Usage
; { try const result = await ShareActions; if resultsuccess console; catch error console; }