Skip to content
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

app crash on items mapping #198

Closed
AnasAlamin opened this issue Dec 30, 2020 · 3 comments
Closed

app crash on items mapping #198

AnasAlamin opened this issue Dec 30, 2020 · 3 comments

Comments

@AnasAlamin
Copy link

app crashes on items mapping
it working on on web

to reproduce the error

https://snack.expo.io/@anasalamin/picker

@jitendrahpatwa
Copy link

Seems this issue it was not showing in the web browser but in the device app expo client throws error and suddenly get crash. While gone through the documentation found "For Managed Workflow users using Expo 37
This component is not supported in the managed workflow for expo sdk 37. Please import the Picker from react-native."

from, #45 (comment)
Therefore, finally need to use,
import { Picker } from 'react-native'.

@Naturalclar
Copy link
Contributor

@AnasAlamin

seems like you're mapping a number into label for Picker.Item
the label needs to be of type string.
Please try it with string, thanks!

@sampath1118
Copy link

@AnasAlamin

seems like you're mapping a number into label for Picker.Item the label needs to be of type string. Please try it with string, thanks!

Thank you for your suggestion, my app is crashing because of i am mapping the array of numbers, thanks again and appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants