[RN] React Native 中使用 stickyHeaderIndices 实现 ScrollView 的吸顶效果
React Native中,ScrollView组件可以使用 stickyHeaderIndices 轻松实现 sticky 效果。
例如下面代码中:
<ScrollView showsVerticalScrollIndicator={false} style={styles.container} stickyHeaderIndices={[1]} >
stickyHeaderIndices = {[1]}
表示 ScrollView 的 第二个子元素 上滑时 吸顶
本博客地址: wukong1688
本文原文地址:https://www.cnblogs.com/wukong1688/p/11105561.html
转载请著名出处!谢谢~~

浙公网安备 33010602011771号