I am trying to link to another app from my react native application (google maps for example).
I required the Linking module as it's written here: https://facebook.github.io/react-native/docs/linking.html
My code contains a simple button which should open the navigation app and pass some location as properties:
<TouchableOpacity
onPress={ () =>{
Linking.openURL("http://maps.google.com/maps=daddr=Wien")
.catch(err => console.error('An error occurred', err)); }}
>
<Text>Navigate</Text>
</TouchableOpacity>
Upon loading the view I get no errors which implicates that requiring the module worked fine.
Upon taping the button I get the following error message :
undefined is not an object (evaluating '_reactNative.Linking.openURL')
I have followed these steps : https://facebook.github.io/react-native/docs/linking-libraries-ios.html and installed npm install link --save
<- Maybe the issue is that this is the wrong module?? If it is the wrong one does anyone know how the correct one is called?