stickyHeaderIndices cannot be sticky for several child views at the same time
See original GitHub issuei want to ask about stickyHeaderIndices
on ScrollView
, on RN version 0.59 can sticky some child view at the same time, but when updating the latest version of RN 0.61 only can sticky one by one per child. So if user scrolled to last child view, only last index can be sticky
React Native version:
System:
OS: Linux 5.0 Ubuntu 18.04.3 LTS (Bionic Beaver)
CPU: (8) x64 Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz
Memory: 228.95 MB / 15.53 GB
Shell: 5.4.2 - /usr/bin/zsh
Binaries:
Node: 10.16.3 - /usr/bin/node
Yarn: 1.17.3 - /usr/bin/yarn
npm: 6.12.1 - /usr/bin/npm
npmPackages:
react: 16.9.0 => 16.9.0
react-native: ^0.61.4 => 0.61.4
npmGlobalPackages:
react-native-asset: 2.0.0
react-native-cli: 2.0.1
react-native-create-library: 3.1.2
react-native-git-upgrade: 0.2.7
Steps To Reproduce
- Create more than 1 View Child inside
ScrollView
- Set index view on
stickyHeaderIndices
Expected:
all child views that are set stickyHeaderIndices should be sticky. not only can sticky one by one per child.
Snack:
Issue Analytics
- State:
- Created 4 years ago
- Comments:6
Top Results From Across the Web
ScrollView stickyHeaderIndices prop does not work as ...
I am using the ScrollView component and i want to have multiple sticky items while scrolling <ScrollView style={style.
Read more >Using React Native ScrollView to create a sticky header
Create a custom sticky header with React Native ScrollView that shrinks, expands, and changes color on scroll to enhance your app's UX.
Read more >ScrollView - React Native
A React Component that will be used to render sticky headers, should be used together with stickyHeaderIndices .
Read more >ScrollView · React Native
Creating JS components and native views for everything all at once, ... For example, passing stickyHeaderIndices={[0]} will cause the first child to be ......
Read more >React Native ScrollView Component - GeeksforGeeks
All the child components (text, views, images, etc.) ... StickyHeaderComponent: Component used to render sticky headers.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Any update on this?
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.