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

Access FlatList methods #6

Open
danielreuterwall opened this issue Jul 19, 2017 · 2 comments
Open

Access FlatList methods #6

danielreuterwall opened this issue Jul 19, 2017 · 2 comments

Comments

@danielreuterwall
Copy link

Hey,

I've experienced a great performance boots and improved stability on Android using the OptimizedFlatList, on iOS thought FlatList works perfectly.

One limitation of the OptimizedFlatList though is access to methods on the underlying FlatList, in my case I need to access scrollToOffset. The ref to the OptimizedFlatList doesn't expose the methods of the FlatList.

Would be great to have to be able to use it as a true drop-in replacement/optimization of the FlatList.

@danielreuterwall
Copy link
Author

I've exposed scrollToOffset in a fork and it works fine. Should we expose all methods from FlatList just like FlatList exposes most of them from VirtualizedList? Not sure if some of them might be unavailable due to the optimization. What do you say @Stoffern? I could make a PR.

@st0ffern
Copy link
Owner

@danielreuterwall great to hear that you are experiencing better performance, as this is the meaning 😉
access to functions should not be a problem, the optimization should still work fine.

Please make a PR when you have the time 😉

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

2 participants