react-native-url-preview icon indicating copy to clipboard operation
react-native-url-preview copied to clipboard

Issue with some URLs

Open mohamedsamara opened this issue 3 years ago • 6 comments

Description REGEX match returns null for this url example.

URL Example: https://lightning.engineering/posts/2021-11-30-lightning-terminal

[Screenshot]

Simulator Screen Shot - iPhone 12 - 2021-12-10 at 13 31 21

mohamedsamara avatar Dec 10 '21 23:12 mohamedsamara

+1

JoelKronander avatar Jun 27 '22 07:06 JoelKronander

There is no error when I use the url you provided, it works as intended

lieberscott avatar Jul 31 '22 14:07 lieberscott

@mohamedsamara I can confirm with your link I also don't have any issue but with this one that I am currently having and trying to debug it on Android since on iOS the app is not crashing as Android does:

The link with problems: https://donate.giveasyoulive.com/donate?eid=19178

Mihai-github avatar Sep 27 '22 07:09 Mihai-github

hi @Mihai-github , I confirm your link cause crash app iwith Android, did u found any solution?

fukemy avatar Nov 19 '22 14:11 fukemy

hi @Mihai-github , I confirm your link cause crash app iwith Android, did u found any solution?

Hi, uhh a bit long time passed since that issue :)) . I could not find a reason why the link had issue. Every test I did worked but something was wrong with that link...

We had to removed it from production manually and hope we don't have any more issues with links like this..

But what I think is something breakes with the native system trying to make the requst to get the metadata of that site but could not find what exactly 🤔 the operating system did no like about it 😅

If someone would find out maybe will leave us the answer to know for future issue... would help many I guess 😁

Mihai-github avatar Nov 19 '22 21:11 Mihai-github

i sure some props is null for this case, so it's make app crash. So I think we need add '?' for ensure avoid crash

fukemy avatar Nov 21 '22 03:11 fukemy