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

getting issue in iOS [javascript] TypeError: [style].flat is not a function. (In '[style].flat()', '[style].flat' is undefined) This error is located at: in Picker (at dropdown/index.js:100) #363

Open
ghost opened this issue Jun 22, 2021 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@ghost
Copy link

ghost commented Jun 22, 2021

I am getting this error in IOS but in android its working fine.

thanks in advance for help and support!

@ghost ghost changed the title getting issue in iOS TypeError: [style].flat is not a function. (In '[style].flat()', '[style].flat' is undefined) [javascript] TypeError: [style].flat is not a function. (In '[style].flat()', '[style].flat' is undefined) This error is located at: in Picker (at dropdown/index.js:100) getting issue in iOS [javascript] TypeError: [style].flat is not a function. (In '[style].flat()', '[style].flat' is undefined) This error is located at: in Picker (at dropdown/index.js:100) Jun 22, 2021
@navin-d97
Copy link

To support iOS 11 and below, you can add array-flat-polyfill to your project, then add to your App.js:
import 'array-flat-polyfill'
It will only add the polyfill, if it doesn't already exist.

reference: facebook/react-native#26283

@mikehardy
Copy link
Collaborator

@navin-d97 this is a fantastic pointer! Would you mind making a PR to the docs anywhere that seems correct? They're in here: https://github.com/hossein-zare/react-native-dropdown-picker-website

@hossein-zare hossein-zare added the documentation Improvements or additions to documentation label Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants