Update WalletsCarousel.js

This commit is contained in:
marcosrdz 2021-03-27 06:41:19 -04:00
parent e384d6b4a1
commit 88f87a00d3

View file

@ -78,7 +78,7 @@ NewWalletPanel.propTypes = {
const iStyles = StyleSheet.create({ const iStyles = StyleSheet.create({
root: { root: {
paddingRight: 10, paddingRight: 10,
paddingLeft: I18nManager.isRTL ? 10 : 0, paddingLeft: 10,
marginVertical: 17, marginVertical: 17,
}, },
grad: { grad: {
@ -288,7 +288,6 @@ const cStyles = StyleSheet.create({
}, },
content: { content: {
left: 16, left: 16,
flexDirection: I18nManager.isRTL ? 'row-reverse' : 'row',
}, },
}); });
@ -338,12 +337,13 @@ const WalletsCarousel = forwardRef((props, ref) => {
)} )}
<Carousel <Carousel
ref={carouselRef} ref={carouselRef}
inverted={I18nManager.isRTL}
renderItem={renderItem} renderItem={renderItem}
sliderWidth={sliderWidth} sliderWidth={sliderWidth}
sliderHeight={sliderHeight} sliderHeight={sliderHeight}
itemWidth={itemWidth} itemWidth={itemWidth}
inactiveSlideScale={1} inactiveSlideScale={1}
inactiveSlideOpacity={I18nManager.isRTL ? 1.0 : 0.7} inactiveSlideOpacity={0.7}
activeSlideAlignment="start" activeSlideAlignment="start"
initialNumToRender={10} initialNumToRender={10}
onLayout={onLayout} onLayout={onLayout}