Skip to content

Commit 3013038

Browse files
miblanchardnecolas
authored andcommitted
Update createPortal import from react-dom
Close #2784
1 parent e76a17d commit 3013038

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-native-web/src/exports/Modal/ModalPortal.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010

1111
import * as React from 'react';
12-
import ReactDOM from 'react-dom';
12+
import { createPortal } from 'react-dom';
1313
import canUseDOM from '../../modules/canUseDom';
1414

1515
export type ModalPortalProps = {|
@@ -41,7 +41,7 @@ function ModalPortal(props: ModalPortalProps): React.Node {
4141
}, []);
4242

4343
return elementRef.current && canUseDOM
44-
? ReactDOM.createPortal(children, elementRef.current)
44+
? createPortal(children, elementRef.current)
4545
: null;
4646
}
4747

0 commit comments

Comments
 (0)