TOP
|
React Native 如何做轮播图 react-native-swiper(四)
3.5 控制按钮
Prop |
|
Default |
Type |
Description |
showsButtons |
|
true |
bool |
是否显示控制箭头按钮 |
buttonWrapperStyle |
|
{position: 'absolute', paddingHorizontal: 15,
paddingVertical: 30, top: 70, left: 0, alignItems:'flex-start'}
|
style |
定义默认箭头按钮的样式 |
nextButton |
|
<Text style={{fontSize:60, color:'#00a7ec',
paddingTop:30, paddingBottom:30}}>?</Text> |
element |
自定义右箭头按钮样式 |
prevButton |
|
<Text style={{fontSize:60, color:'#00a7ec',
paddingTop:30, paddingBottom:30}}>?</Text> |
element |
自定义左箭头按钮样式 |
加油!
|