-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
component performance issues on iOS with larger items
#1239
Comments
@aligfl 800 items in picker is a very large number. We don't generally use such a large number of items in picker. If there is any valid use case, let us know. |
@akhil-geekyants this is a use case for our app. Where we have a list of items that we need to pick from. Infact ours is around even more. I used 800 just as an example. It would be great if the performance problem can be fixed. It would be amazing if you guys added a "Search Bar" at the top to search the list of item from the picker. |
@aligfl We will have React Native's FlatList with NativeBase Picker |
You should not use Also, avoid using index as keys (on this example it might be ok). This seems to be a normal list performance issue, not necessarily related to Picker. |
Replaced ListView with FlatList in Picker
Possible Fix for issue #1239. Replaced ListView with FlatList in Picker
Fixed with 2.3.6 |
I'm still having this performance issue with version The main problem I can observe is that the rendering of the items happens even the List is not active, say I have this edit page with this big picker, when I click a link from another page to this edit page, the screen will freeze for several seconds, then the edit page appears. the list should only be rendered when the picker is active IMO |
Hi,
I'm seeing some performance issues when using the
Picker
component with large items on iOS.react-native, react and native-base version
Expected behaviour
Picker to quickly close when an item is selected or
back
button is pressed.Actual behaviour
There is a 3~4 second lag when either an item is selected or
back
is pressed on iOSSteps to reproduce (code snippet or screenshot)
800
items.back
OR select an item from the list.Screenshot of emulator/device
Is the bug present in both ios and android or in any one of them?
just iOS.
Any other additional info which would help us debug the issue quicker.
The text was updated successfully, but these errors were encountered: