Skip to content

Commit e996f62

Browse files
authored
chore: Optimize for web tree shaking (#388)
1 parent 28849c8 commit e996f62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/Picker.web.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
import * as React from 'react';
9-
import * as ReactNativeWeb from 'react-native-web';
9+
import {unstable_createElement} from 'react-native-web';
1010
import {forwardRef} from 'react';
1111
import type {ViewProps} from 'react-native-web/src/exports/View/types';
1212
import type {GenericStyleProp} from 'react-native-web/src/types';
@@ -31,7 +31,7 @@ type PickerProps = {
3131
};
3232

3333
const Select = forwardRef((props: any, forwardedRef) =>
34-
ReactNativeWeb.unstable_createElement('select', {
34+
unstable_createElement('select', {
3535
...props,
3636
ref: forwardedRef,
3737
}),

0 commit comments

Comments
 (0)