-
Notifications
You must be signed in to change notification settings - Fork 276
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
version 1.2.0 addOrientationListener not working on android #139
Comments
@VankataMitov Thanks for your information. Basically, there is no difference between launch, the callback is registered when application created. So it must works on first launch too. |
I was experiencing an issue like this earlier. I would attempt to listen for orientation changes and on android, the callback would run when the component mounted but not after that. I didn't try closing and re-opening the app, so can't tell you how that went. My work around was to use I don't know what the difference is between |
@r0b0t3d thanks for explaining that. The fact remains that I wasn't getting |
v1.2.0 addDeviceOrientationListener not working on IOS device when Auto-rotate turn off . |
@dinhtrumdieu
So, in your case, I think you should check the previous version to see whether it works or not. If you find it is the problem with 1.2.0, you can open another issue to keep track. This issue should just for android. I am going to work on this issue for Android. Hopefully can fix this weekend. |
@webyonet @VankataMitov If you have time, please help to check #140 to see whether this issue is fixed. Thanks |
@r0b0t3d I want to listen to orientation changes when the AUTO rotate turn off. The fact that I wasn't getting addDeviceOrientationListener on IOS even when it was working on Android |
If that is the case, you should open an issue with |
Are you guys going to generate a new release based on this fix? (: |
@wonday Could you consider to make a patch release for this? |
This is actually still happening with v1.7.0. When I run jest tests, it fails with:
|
v1.2.0 addOrientationListener does not work on android device and continues to rotate even if Auto-rotate button is turned off. None of these issues occurred in v1.1.8
RN: 0.61.5
Android: 10
The text was updated successfully, but these errors were encountered: