Skip to content

Is there support for RTL layout? #14

@edwardigates

Description

@edwardigates

When I change my phone language to Hebrew\Arabic, the pagination doesn't work.
I tried to set the curPage as such:

                  <PaginationDot
                      activeDotColor={'#f14447'} 
                      curPage={I18nManager.isRTL ? state.carouselItems.length - 1  - state.activeIndex : state.activeIndex} 
                      maxPage={state.carouselItems.length} // Note: my data set has 13 items
                      sizeRatio={2.0}
                  />

I don't see the first item highlighted, I only start see the curPage highlighted after 5 scrolls, and then after another 5 scrolls it disappears again.
I tried playing with the curPage setting it to different values, but it seems I cant get it to work on RTL layout.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions