diff --git a/js/Picker.web.js b/js/Picker.web.js index 22d89012d1..29bffe6f42 100644 --- a/js/Picker.web.js +++ b/js/Picker.web.js @@ -30,11 +30,8 @@ type PickerProps = { prompt?: string, }; -const createElement = - ReactNativeWeb.createElement || ReactNativeWeb.unstable_createElement; - const Select = forwardRef((props: any, forwardedRef) => - createElement('select', props), + ReactNativeWeb.unstable_createElement('select', props), ); const Picker: React$AbstractComponent = forwardRef< diff --git a/js/PickerItem.js b/js/PickerItem.js index 63db0801fa..3784dcc49e 100644 --- a/js/PickerItem.js +++ b/js/PickerItem.js @@ -18,10 +18,8 @@ type Props = { value?: number | string, }; -const createElement = - ReactNativeWeb.createElement || ReactNativeWeb.unstable_createElement; - -const Option = (props: any) => createElement('option', props); +const Option = (props: any) => + ReactNativeWeb.unstable_createElement('option', props); /** * PickerItem Component for React Native Web