{"repo":"GetStream/flat-list-mvcp","free":true,"listed":false,"github":"https://github.com/GetStream/flat-list-mvcp","clone":"git clone https://github.com/GetStream/flat-list-mvcp.git","description":"\"maintainVisibleContentPosition\" prop support for Android react-native","language":"TypeScript","stars":139,"topics":["react-native","android","flatlist","wrapper","scrollview"],"license":"MIT","category":"mobile-apps","readme_excerpt":"maintainVisibleContentPosition prop support for Android react-native. Built with ♥ at [Stream ] In react-native, ScrollView (and FlatList) component have support for a prop maintainVisibleContentPosition , which is really useful for chat-like applications where you want to see new messages scroll into place. Also you might need it in other applications where you need bi-directional infinite scroll. Although currently its only supported on iOS. So here we have built a simple wrapper for FlatList and ScrollView to add support for this prop for android. On iOS, we simply return FlatList and ScrollView from react-native package. We built this wrapper for our in-house react-native chat sdk, but we are making it public, in case it helps other devs from react-native community. Before you proceed, please don't forget to also check other relevant packages, built at Stream: - react-native-bidirectional-infinite-scroll - stream-chat-react-native ⚠️ Horizontal list is currently not supported on this package. Example Installation Usage Expo support This package doesn't support Expo managed workflow. There is a feature request open for expo - https://expo.canny.io/feature-requests/p/android-maintainvisiblecontentposition-on-flatlist (please upvote) Credits Thanks to stackia for https://github.com/facebook/react-native/pull/29466#issuecomment-664367382 Contributing PRs for improvement are welcome :) License MIT","default_branch":null,"files":null,"tree":[],"storefront":"/r/GetStream","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/GetStream/flat-list-mvcp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}