Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

Getting Linking undefined even if linked correctly

$
0
0

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?


Viewing all articles
Browse latest Browse all 16552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>