React native 如何更改React Native Swiper dots的默认位置?
我正在使用这个RN包 我正试着把分页点往上移动一点 这是我的密码React native 如何更改React Native Swiper dots的默认位置?,react-native,react-native-android,react-native-ios,swiper,React Native,React Native Android,React Native Ios,Swiper,我正在使用这个RN包 我正试着把分页点往上移动一点 这是我的密码 <Swiper from={1} minDistanceForAction={0.1} controlsProps={{ dotsTouchable: true, prevPos: 'left', nextPos: 'right', nextTitle: '', prevTitle: '', dotsWrapperStyle: { },
<Swiper
from={1}
minDistanceForAction={0.1}
controlsProps={{
dotsTouchable: true,
prevPos: 'left',
nextPos: 'right',
nextTitle: '',
prevTitle: '',
dotsWrapperStyle: { },
nextTitleStyle: { color: 'red', fontSize: 24, fontWeight: '500' },
}}
>
<View style={[styless.slideContainer]}>
//some views
</View>
</Swiper>
//一些观点
有办法移动这些点吗?因为滑块视图的高度很小,所以点被其他视图隐藏。您可以使用以下方法:
//一些观点
唯一的更改是dotsWrapperStyle道具上的边距值。
确保根据需要更改值