How to align the selected title to center??
basanthalluri opened this issue · 1 comments
basanthalluri commented
Hi,
I am using PagerTitleIndicator for scrollable tab and I want to display the selected item to the centre when selecting this.
I am attaching the screenshot
In the screen I have selected building gude so I need the position to the center not to left most
I need every selected Item should be aligned to center except the last and first item
Ca you help me how to achieve this.
luatnd commented
Hi, I've met the same issue.
After read the source code, I decide to fork and modify it by myself, not sure this modification can be a PR or not.
You can pull the code or see the changes here:
luatnd@0d51a08
Or too include my version, change your package.json
from
"rn-viewpager": "^x.x.x",
to
"rn-viewpager": "https://github.com/luatnd/React-Native-ViewPager.git",