Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to align the selected title to center?? #159

Open
basanthalluri opened this issue Apr 9, 2019 · 1 comment
Open

How to align the selected title to center?? #159

basanthalluri opened this issue Apr 9, 2019 · 1 comment

Comments

@basanthalluri
Copy link

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
Screen Shot 2019-04-09 at 12 11 06 PM
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
Copy link

luatnd commented Apr 18, 2019

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",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants