react-native-send-intent icon indicating copy to clipboard operation
react-native-send-intent copied to clipboard

Getting error invoking any method

Open humolabs opened this issue 6 years ago • 1 comments

Hi! Im getting an error when i try to invoke any SendIntentAndroid function

image

This happens with any funtion, i cant understand what im doing bad. Im Just copying the example provided.

import * as SendIntentAndroid from 'react-native-send-intent'

SendIntentAndroid.openChooserWithOptions( { subject: 'Story Title', text: 'Message Body' }, 'Share Story' )

Im running this with:

"dependencies": { "expo": "^32.0.0", "react": "16.5.0", "react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz", "react-native-elements": "^1.1.0", "react-native-send-intent": "^1.0.30", "react-native-vector-icons": "^6.4.2" },

Many thanks in advance.

humolabs avatar Apr 30 '19 01:04 humolabs

Hi @humolabs

This module only works with expo if you eject your project, because this module use the native layer (not only JavaScript).

OK?

lucasferreira avatar Apr 30 '19 13:04 lucasferreira