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

Do not use window width; get the width of the current viewport #19

Open
fatuhoku opened this issue Aug 11, 2015 · 0 comments
Open

Do not use window width; get the width of the current viewport #19

fatuhoku opened this issue Aug 11, 2015 · 0 comments

Comments

@fatuhoku
Copy link
Contributor

I use react-native-parallax-view inside of a form-sheet presented modal view on iPad. This means that while the viewport area is 540pt wide, the screen actually is much wider.

At present, the image's width is given by width: screen.width, which is far too wide. this makes the image appear too 'zoomed in' and basically it has the wrong aspect ratio.

@fatuhoku fatuhoku changed the title Do not use window width Do not use window width; get the width of the current viewport Aug 11, 2015
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

1 participant