Closed
Description
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch [email protected]
for the project I'm working on.
Here is the diff that solved my problem:
diff --git a/node_modules/react-native-url-polyfill/index.js b/node_modules/react-native-url-polyfill/index.js
index 675947e..e832063 100644
--- a/node_modules/react-native-url-polyfill/index.js
+++ b/node_modules/react-native-url-polyfill/index.js
@@ -2,13 +2,13 @@ import './js/ios10Fix';
import {polyfillGlobal} from 'react-native/Libraries/Utilities/PolyfillFunctions';
-import {name, version} from './package.json';
+import packageJson from './package.json';
export * from './js/URL';
export * from './js/URLSearchParams';
export function setupURLPolyfill() {
- global.REACT_NATIVE_URL_POLYFILL = `${name}@${version}`;
+ global.REACT_NATIVE_URL_POLYFILL = `${packageJson.name}@${packageJson.version}`;
polyfillGlobal('URL', () => require('./js/URL').URL);
polyfillGlobal(
This issue body was partially generated by patch-package.
Metadata
Metadata
Assignees
Labels
No labels