Skip to content

Commit 86334a8

Browse files
authored
Only default export is available soon (#458)
1 parent bc5eb5f commit 86334a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import './js/ios10Fix';
22

3-
import {name, version} from './package.json';
3+
import packageJson from './package.json';
44

55
export * from './js/URL';
66
export * from './js/URLSearchParams';
77

88
export function setupURLPolyfill() {
9-
globalThis.REACT_NATIVE_URL_POLYFILL = `${name}@${version}`;
9+
globalThis.REACT_NATIVE_URL_POLYFILL = `${packageJson.name}@${packageJson.version}`;
1010

1111
globalThis.URL = require('./js/URL').URL;
1212
globalThis.URLSearchParams = require('./js/URLSearchParams').URLSearchParams;

0 commit comments

Comments
 (0)