We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b0eebb commit 3b313f4Copy full SHA for 3b313f4
.eslintrc.js
@@ -1,4 +1,7 @@
1
module.exports = {
2
extends: '@react-native-community',
3
root: true,
4
+ globals: {
5
+ globalThis: false,
6
+ },
7
};
index.js
@@ -6,8 +6,8 @@ export * from './js/URL';
export * from './js/URLSearchParams';
8
export function setupURLPolyfill() {
9
- global.REACT_NATIVE_URL_POLYFILL = `${name}@${version}`;
+ globalThis.REACT_NATIVE_URL_POLYFILL = `${name}@${version}`;
10
11
- global.URL = require('./js/URL').URL;
12
- global.URLSearchParams = require('./js/URLSearchParams').URLSearchParams;
+ globalThis.URL = require('./js/URL').URL;
+ globalThis.URLSearchParams = require('./js/URLSearchParams').URLSearchParams;
13
}
0 commit comments