I’m trying to implement the simple sharing
import Share, {ShareSheet, Button} from 'react-native-share';
<TouchableHighlight onPress={() => {
Share.open({
title: "React Native",
message: "Hola mundo",
url: "http://facebook.github.io/react-native/"
})
}}>
<Text> Share </Text>
</TouchableHighlight>
But I got this error:
09-07 11:07:45.829 3037 5393 W ReactNativeJS: Possible Unhandled Promise Rejection (id: 0):
09-07 11:07:45.829 3037 5393 W ReactNativeJS: undefined is not an object (evaluating ‘_reactNative.NativeModules.RNShare.open’)
Any advice ?
I am having this problem and I have including it into MainApplication.java