You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to open a link from the React Native app.
For this, I'm using Linking from react-native package.
The problem is that only sometimes opens the link. In other cases it does nothing.
I also change the <Text> component with a <TouchableOpacity> but its still the same issue.
The problem is not from the if check, because the url its always valid ( and to falsy )
Anyone else had the same issue, any ideas to fix this issue?
Code Sample
handlerOpenLink=url=>{if(url){Linking.openURL(url);}else{Alert.alert("some message");}};return<View><TextonPress={()=>this.handlerOpenLink(url)}>
Open Link
</Text></View>
The text was updated successfully, but these errors were encountered:
I'm trying to open a link from the React Native app.
For this, I'm using
Linking
fromreact-native package
.The problem is that only sometimes opens the link. In other cases it does nothing.
I also change the
<Text>
component with a<TouchableOpacity>
but its still the same issue.The problem is not from the
if
check, because the url its always valid ( and to falsy )Anyone else had the same issue, any ideas to fix this issue?
Code Sample
The text was updated successfully, but these errors were encountered: