react-native - 是否可以在本机反应中更改滚动条颜色
解决方案
最后我找到了解决方案。使用这个包 react-native-scroll-indicator
这是我的代码
<ScrollViewIndicator
shouldIndicatorHide={false}
flexibleIndicator={false}
scrollIndicatorStyle={{ backgroundColor: 'pink' }}
scrollIndicatorContainerStyle={{ backgroundColor: 'rgba(0, 0, 0, 0.1)' }}
>
...
</ScrollViewIndicator>
推荐阅读
- language-lawyer - 是否允许符合 C11 的实现将每个函数编译成无限循环?
- jquery - jQuery .css 中的多个字体变化设置
- java - 如何在Java中将两个文本文件数据逐行写入第三个文件?
- excel - PowerQuery 中的随机样本
- python - 当 WHERE 子句具有功能时,如何编写 Django 查询?
- javascript - 确定谁点击了电子邮件中的链接
- mysql - 用于选择最后几行的mysql查询
- java - 使用后台方法从我的片段中读取 json 后,我的 android studio 应用程序不断崩溃
- mysql - 如何连接两个sql子查询
- node.js - 添加计算字段猫鼬的最有效方法