zod icon indicating copy to clipboard operation
zod copied to clipboard

URL validation broken on react native

Open MrLoh opened this issue 2 years ago • 0 comments

I just discovered that URL validation doesn't work on react native because the default react native polyfill does no throw errors for invalid URLs. Maybe it would be worth adding a note to the docs that recommends using the following spec compliant polyfill in react native instead: https://www.npmjs.com/package/react-native-url-polyfill

MrLoh avatar Dec 21 '22 05:12 MrLoh