-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
Orientation listeners don't work in functional components #65
Comments
I would like to see that feature as well. I am using hooks and I really don't want to use class-based components. |
im faceing this issue too and my whole app is build with funcational componants please add the support |
same |
See my pull request: PR #83 It has updated docs and a hook example and everything. And the change to RNRS itself is pretty small. And adds a new feature 😃 |
the error for that.setState is stil here , im also using hooks |
maybe we can change some code like : const Orientation = () => {
} |
I was writing a functional component and I just don't know how to subscribe to the orientation changes. Since the method
listenOrientationChange
accepts a class instance and use the methoduseState
from class components.I guess that extending the listener to functional components would be great ;)
The text was updated successfully, but these errors were encountered: