File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ react-native-url-polyfill is an implementation of the WHATWG [URL Standard](http
37
37
- ** Blob support** . Supports React Native's Blob without additional steps.
38
38
- ** Hermes support** . Supports [ Hermes] ( https://github.com/facebook/hermes ) , a JavaScript engine optimized for running React Native.
39
39
- ** Expo support** . Supports [ Expo] ( https://expo.dev/ ) and tested against.
40
+ - ** Web support** . Most of the time, this polyfill isn't useful on web and therefore using ` react-native-url-polyfill/auto ` will be no-op on web.
40
41
41
42
## Why do we need this?
42
43
Original file line number Diff line number Diff line change
1
+ import { Platform } from 'react-native' ;
2
+
1
3
import { setupURLPolyfill } from './index' ;
2
4
3
- setupURLPolyfill ( ) ;
5
+ if ( Platform . OS !== 'web' ) {
6
+ setupURLPolyfill ( ) ;
7
+ }
You can’t perform that action at this time.
0 commit comments