Skip to content

Commit

Permalink
Only default export is available soon (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
charpeni authored Jul 7, 2023
1 parent bc5eb5f commit 86334a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import './js/ios10Fix';

import {name, version} from './package.json';
import packageJson from './package.json';

export * from './js/URL';
export * from './js/URLSearchParams';

export function setupURLPolyfill() {
globalThis.REACT_NATIVE_URL_POLYFILL = `${name}@${version}`;
globalThis.REACT_NATIVE_URL_POLYFILL = `${packageJson.name}@${packageJson.version}`;

globalThis.URL = require('./js/URL').URL;
globalThis.URLSearchParams = require('./js/URLSearchParams').URLSearchParams;
Expand Down

0 comments on commit 86334a8

Please sign in to comment.