File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 66 */
77
88import * as React from 'react' ;
9+ import * as ReactNativeWeb from 'react-native-web' ;
910import { forwardRef , useRef } from 'react' ;
1011import type { ViewProps } from 'react-native-web/src/exports/View/types' ;
1112import type { GenericStyleProp } from 'react-native-web/src/types' ;
@@ -30,8 +31,7 @@ type PickerProps = {
3031} ;
3132
3233const createElement =
33- require ( 'react-native-web' ) . createElement ||
34- require ( 'react-native-web' ) . unstable_createElement ;
34+ ReactNativeWeb . createElement || ReactNativeWeb . unstable_createElement ;
3535
3636const Select = forwardRef ( ( props : any , forwardedRef ) =>
3737 createElement ( 'select' , props ) ,
Original file line number Diff line number Diff line change 88import type { ColorValue } from 'react-native/Libraries/StyleSheet/StyleSheet' ;
99
1010import * as React from 'react' ;
11+ import * as ReactNativeWeb from 'react-native-web' ;
1112
1213type Props = {
1314 color ?: ColorValue ,
@@ -18,8 +19,7 @@ type Props = {
1819} ;
1920
2021const createElement =
21- require ( 'react-native-web' ) . createElement ||
22- require ( 'react-native-web' ) . unstable_createElement ;
22+ ReactNativeWeb . createElement || ReactNativeWeb . unstable_createElement ;
2323
2424const Option = ( props : any ) => createElement ( 'option' , props ) ;
2525
You can’t perform that action at this time.
0 commit comments