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

Can not customize the width, when the specified width, the two sides will be more of a painting! I hope the author can give a solution. Thanks to the author's library! #151

Open
HAPENLY opened this issue May 24, 2017 · 3 comments

Comments

@HAPENLY
Copy link

HAPENLY commented May 24, 2017

image
When I give the picture to the width of the time, twice will show the candidate picture. Tried a lot of ways can not be resolved, I hope the author concerned about this issue, so that the library better use. Thanks to the author's library!

@clarete
Copy link

clarete commented Jun 1, 2017

Not sure if that helps but I wasn't successful controlling the width of the <ViewPager> either. I ended up wrapping it around a regular <View> and it worked exactly like I expected. HTH.

@jslz
Copy link

jslz commented Sep 20, 2017

@clarete what do you mean, how do you put a View as a child of ViewPager to force the width?

@clarete
Copy link

clarete commented Sep 26, 2017

Hi @jslz I just put the ViewPager element within a View and set the width of the View.

   <View style={{ width: Dimensions.get('window').width }} ref="viewPager">
      <ViewPager (...) />
   </View>

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

3 participants