-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
Idea for orientation change support #9 #21
base: master
Are you sure you want to change the base?
Conversation
i think the checks failed because i had to insert the sheet source into the styles object to be able to retrieve the original source and reprocess it again. |
Hi @abdallahm Could you make some effort in direction when we wrap the whole app in our |
Hi @vitalets Done, please check. |
I've pushed my drafts on this feature to separate branch orientation-support, lets move our work there. I suggest creating Also I suggest to provide AppContainer itself: https://github.com/vitalets/react-native-extended-stylesheet/blob/orientation-support/src/components/app-container.js Example of wrapping app: The problem is to automatically update react components after orientation change. |
Is there any progress on this? It would be very awesome! |
hi @vdhpieter I am currently a bit out of mobile unfortunately.. |
Hi ! Any update on this feature? |
Hi @Antoine-C unfortunately not :( |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
} | ||
} | ||
return window.dimensions = { | ||
orientation: (layout.width < layout.height ? 'portrait' : 'landscape'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note this can be a false positive on iPad when using split view after this bug was fixed:
facebook/react-native#16152
This is an idea of supporting the orientation change, however it depends on another package for detecting the orientation change event, like react-native-orientation.
Please review the changes and let me know if you have any questions or concerns.