是否可以在本机反应中更改滚动条颜色
Is it possible to change scrollbar color in react native
我可以在 React Native 中创建看起来像这张图片的自定义滚动条吗?
谢谢
我终于找到了解决办法。
使用这个包
react-native-scroll-indicator
这是我的代码
<ScrollViewIndicator
shouldIndicatorHide={false}
flexibleIndicator={false}
scrollIndicatorStyle={{ backgroundColor: 'pink' }}
scrollIndicatorContainerStyle={{ backgroundColor: 'rgba(0, 0, 0, 0.1)' }}
>
...
</ScrollViewIndicator>
It only supports ScrollView right now. But in the next version, it should support FlatList.
我可以在 React Native 中创建看起来像这张图片的自定义滚动条吗?
谢谢
我终于找到了解决办法。 使用这个包 react-native-scroll-indicator
这是我的代码
<ScrollViewIndicator
shouldIndicatorHide={false}
flexibleIndicator={false}
scrollIndicatorStyle={{ backgroundColor: 'pink' }}
scrollIndicatorContainerStyle={{ backgroundColor: 'rgba(0, 0, 0, 0.1)' }}
>
...
</ScrollViewIndicator>
It only supports ScrollView right now. But in the next version, it should support FlatList.