I 'm getting undefined is not an object (evaluating '_react.Linking.canOpenURL')
when trying to use Linking on iOS. I've tried with both LinkingIOS
and Linking
but it crashes the same way.
var url = 'http://maps.apple.com/?ll=48.2292016,-1.5300695'; console.log(url); Linking.canOpenURL(url).then(supported => { if (supported) { Linking.openURL(url); this.props.navigator.popToTop(); } else { console.warn('Don\'t know how to go'); } }).catch(err => console.error('An error occurred', err));
I have checked if LinkingIOS is correctly linked and it is the case. I've even re-linked it, restarted both xcode and the simulator but I'm still getting this error.
I do have RTCLinking.xcodeproj
in my Libraries
folder and I do have libRTCLinking.a
in my linked binaries.
Why the h$$$ is it still crashing?