react-native-hyperlink icon indicating copy to clipboard operation
react-native-hyperlink copied to clipboard

linkDefault no longer works on iOS with Expo SDK 39

Open karanmartian opened this issue 4 years ago • 10 comments

Only on iOS seeing this issue, have to explicitly mention Linking.openURL in onPress func. This is after upgrading to RN Expo 39.0.0 SDK

karanmartian avatar Sep 29 '20 19:09 karanmartian

It also appears not to work on iOS14.1 with RN Expo 38.0.0 SDK, but explicitly mentioning Linking.openURL had no effect.

I'm going to try updating to Expo 39.0.0 SDK in the hope that the workaround of using onPress works there.

rrufus avatar Nov 10 '20 10:11 rrufus

Any news?

eladcandroid avatar Dec 03 '20 13:12 eladcandroid

Also have a project that is running RN Expo 39.0.0. On iOS I am noticing that the onPress seems to not fire. The onLongPress does fire though.

A workaround here is to add your own Linking logic but I'd rather have a fix for the onPress to fire correctly.

ShaneKeney avatar Dec 04 '20 19:12 ShaneKeney

This is weird. I don't have an iOS device atm, I'm hoping this is reproducible on the simulators?

obipawan avatar Dec 05 '20 05:12 obipawan

@obipawan Also noticed that this is only occurring for situations where Google Chrome is set as default browser. When I set my default browser to Safari, it works per usual.

ShaneKeney avatar Dec 23 '20 18:12 ShaneKeney

@ShaneKeney I am having the same issue as chrome is set as the default browser. Did you find any solution for this?

KMKoushik avatar Jan 02 '21 13:01 KMKoushik

Never mind it can be fixed by doing this step

https://github.com/obipawan/react-native-hyperlink/issues/57#issuecomment-733001152

KMKoushik avatar Jan 02 '21 16:01 KMKoushik

@koushikmohan1996 We used Expo managed workflow so that solution wouldn't work for us directly. I'll have to check to see if that is configurable param for Expo app.json config. Otherwise we may just build out our own.

ShaneKeney avatar Jan 04 '21 00:01 ShaneKeney

@koushikmohan1996 We used Expo managed workflow so that solution wouldn't work for us directly. I'll have to check to see if that is configurable param for Expo app.json config. Otherwise we may just build out our own.

Okay. I was facing many issues like this while using expo. That's the main reason I moved to bare react native. :)

KMKoushik avatar Jan 04 '21 02:01 KMKoushik

This issue seems to be resolved now. No longer facing these issues.

ShaneKeney avatar Feb 03 '21 18:02 ShaneKeney