-
-
Notifications
You must be signed in to change notification settings - Fork 673
Closed
Labels
Description
We got a report from
rust-lang
that any invalid link (e.g.[something](not a valid link)
) crashes the React Native app upon longpress. Both the reporter and I are on Android, so I can't verify if it also affects iOS.
I've reproduced the issue on Android—and indeed also on iOS.
We should catch the error from the URL parser.
I wouldn't have expected errors in the long-press handler to actually crash the app; that is puzzling. And in a debug build, the symptom is different—the app doesn't crash; it just shows a dismissable red error screen. Anyway, we want to catch and handle the error, since servers' expected behavior includes producing an href
that doesn't parse.