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

Consider supporting React Native #128

Open
inokawa opened this issue Jul 17, 2023 · 6 comments
Open

Consider supporting React Native #128

inokawa opened this issue Jul 17, 2023 · 6 comments

Comments

@inokawa
Copy link
Owner

inokawa commented Jul 17, 2023

It may be possible if we detect element's resize with onLayout of View and get scroll position from ScrollView.

@morajabi
Copy link

what would be the difference with FlatList / SectionList / VirtualizedList?

@inokawa
Copy link
Owner Author

inokawa commented Jul 30, 2023

Yes, I know there have been already FlatList and VirtualizedList (and also FlashList).

I'm not sure it's worth doing. If we were to make it, the RN version would work without configuration of height/width like web version. And it should support bi-directional infinite scrolling like Twitter App in the future.

@morajabi
Copy link

morajabi commented Oct 15, 2023

@inokawa Update: we used FlashList in iOS expo app. In my experience it's focused on recycling views and it fails to accommodate certain use-cases very well (eg. reverse scrolling with sticky items). So it's not a one-size-fits-all solution and there is room for another library.

@inokawa
Copy link
Owner Author

inokawa commented Oct 16, 2023

Thank you for sharing the information!
Although React Native is a bit de-prioritized than something for web to me, it will be worth trying it.

@morajabi
Copy link

@inokawa Same. Althought RN lists can be better, virtua can provide the most value in web given the lack modern, up-to-date and light weight solutions.

@inokawa
Copy link
Owner Author

inokawa commented Dec 5, 2023

Probably there are no flushSync alternatives in react native.
facebook/react-native#41487

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