Skip to content

Commit 2e7ae8e

Browse files
nitzanyizInbal-Tish
authored andcommitted
Inverted the inner view so only the scroll view will be inverted (#2858)
1 parent 7d07cf2 commit 2e7ae8e

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/components/carousel/index.tsx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -381,14 +381,17 @@ class Carousel extends Component<CarouselProps, CarouselState> {
381381

382382
return (
383383
<View
384-
style={{
385-
width: pageWidth,
386-
height: !horizontal ? pageHeight : undefined,
387-
paddingLeft,
388-
marginLeft,
389-
marginRight,
390-
paddingVertical
391-
}}
384+
style={[
385+
{
386+
width: pageWidth,
387+
height: !horizontal ? pageHeight : undefined,
388+
paddingLeft,
389+
marginLeft,
390+
marginRight,
391+
paddingVertical
392+
},
393+
Constants.isRTL && Constants.isAndroid && styles.invertedView
394+
]}
392395
key={key}
393396
collapsable={false}
394397
>

0 commit comments

Comments
 (0)