-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Picker Item is not listed on IOS #550
Comments
After installation of module run pod install refer: |
@sairamchow5555 But is expo-managed flow necessary when doing so? |
you can try to use the Selector from the native-base which also works similar to the react-native-picker/picker |
its still not working using pod intstall on IOS any help ? |
I ended up creating the component by hand, considering it was having problems |
I can confirm that no items are rendered after following the install instructions within a clean install of the latest version of Expo 50.0.17 on iOS. What seems to be required is a parent View immediately around the picker, otherwise nothing will be rendered even if placed on a screen with other elements. |
Same issue, here, Items are not rendered in IOS, any fixes or suggestions? |
H! Can you elaborate on your workaround? I have put the Picker inside a View, but still not showing up in my Expo 50 project. |
Surrounding the Picker in a View with an explicit width set did it for me. E.g. <View style={{ width: "100%" }}>
<PickerIOS>...</PickerIOS>
</View> |
Defining the
|
I'm using Picker (@react-native-picker/picker) in a form, but on IOS it doesn't display the Picker.Items, on Android it worked perfectly estou usando a versão "@react-native-picker/picker": "2.4.10" e estou usando o "expo": "^49.0.0",
<InputContainer> <Label>{t('signIn.broker')}</Label> <Controller control={control} rules={{ required: true }} render={({ field: { onChange, onBlur, value } }) => ( <ContainerSelect> <Picker enabled={!isSubmitting && loadBrokers} selectedValue={value} onValueChange={onChange} onBlur={onBlur} style={{ backgroundColor: theme.colors.mediumGray, color: theme.colors.lightGray, height: 48, fontSize: 16 }} dropdownIconColor="white" dropdownIconRippleColor={theme.colors.mediumGray}> <Picker.Item label="" value="" /> {brokers.map((item: broker) => { return <Picker.Item label={item.nameDisplay} value={item.name} key={item.nameDisplay} />; })} </Picker> </ContainerSelect> )} name="broker" /> {errors.broker && <ErrorText>{errors.broker.message}</ErrorText>} </InputContainer>
"In the broker input, it should present a listing"
The text was updated successfully, but these errors were encountered: