Skip to content

Commit 71bec5b

Browse files
committed
Added children reversing in the accessible layout
1 parent 446e70d commit 71bec5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/carousel/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,8 @@ class Carousel extends Component<CarouselProps, CarouselState> {
471471
}
472472

473473
renderAccessibleLayout() {
474-
const {containerStyle, children, testID} = this.props;
475-
474+
const {containerStyle, children: propsChildren, testID} = this.props;
475+
const children = Constants.isRTL && Constants.isAndroid ? React.Children.toArray(propsChildren) : propsChildren;
476476
return (
477477
<View style={containerStyle} onLayout={this.onContainerLayout}>
478478
<ScrollView

0 commit comments

Comments
 (0)