flat-list-mvcp
react-native-bidirectional-infinite-scroll
flat-list-mvcp | react-native-bidirectional-infinite-scroll | |
---|---|---|
3 | 1 | |
131 | 231 | |
0.0% | 0.0% | |
0.0 | 0.0 | |
8 months ago | about 2 years ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
flat-list-mvcp
- How to implement the standard chat app feature of having the focus of the FlatList automatically be focused at the end/newest messages
-
Anyone built a Chat app with React Native lately?
How did you solve the issue of seeing the chat history? In the normal FlatList if you prepend items to the top of the list the scroll position flies all the way to the top, terrible UX. I had to dig around and try to fix this for an entire week. Tried inverting the FlatList which made it drop to 10 fps on my Android device, and inverting with styling caused weird empty spaces to form. Finally ended up with this small library which is mostly acceptable.
-
React Native: How To Build Bidirectional Infinite Scroll
FlatList from React Native accepts a prop - maintainVisibleContentPosition, which makes sure your scroll doesn't jump to the end of the list when more items are added to the list. But this prop is only supported on iOS for now. So taking some inspiration from this PR, we published our separate package to add support for this prop on Android - flat-list-mvcp. And thus @stream-io/flat-list-mvcp is a dependency of the react-native-bidirectional-scroll package.
react-native-bidirectional-infinite-scroll
-
React Native: How To Build Bidirectional Infinite Scroll
I hope you found it useful. Feel free to add some questions, comments, and feedback here. And don't forget to put a ⭐ on github repo. Happy Coding!!
What are some alternatives?
react-native - A framework for building native applications using React
react-native-reanimated-carousel - 🎠 React Native swiper/carousel component, fully implemented using reanimated v2, support to iOS/Android/Web. (Swiper/Carousel)
react-native-elements - Cross-Platform React Native UI Toolkit
stream-chat-react-native - 💬 React-Native Chat SDK ➜ Stream Chat. Includes a tutorial on building your own chat app experience using React-Native, React-Navigation and Stream
react-native-modalize - A highly customizable modal/bottom sheet that loves scrolling content.
react-cool-virtual - 😎 ♻️ A tiny React hook for rendering large datasets like a breeze.
flash-list - A better list for React Native
react-responsive-carousel - React.js Responsive Carousel (with Swipe)
react-native-gifted-chat - 💬 The most complete chat UI for React Native
react-native-swiper-flatlist - 👆 Swiper component implemented with FlatList using Hooks & Typescript + strict automation tests with Detox