yamill/react-native-orientation

get orientation change while locking to portrait

ChintanRajpara opened this issue · 4 comments

I am building a camera application and there i want to shoot both landscape and portrait videos,
the problem I am facing is that I don’t want my whole screen to be rotated while the device gets rotated, instead I want my camera screen to be locked on portrait mode and rotate the icons by using “Animated”, but while locking to portrait I am not able to get the “onOrientationChange” eventListener fired.
so is there any way to get onOrientationChange listeners while locking to portrait?

What platform are you testing on?

I found that when locked to portrait, on iOS my onOrientationChange listener still gets fired, but on Android it doesn't.

I was testing upon android

Is it possible to receive these events from Android while it's locked in portrait?