react-native-orientation icon indicating copy to clipboard operation
react-native-orientation copied to clipboard

get orientation change while locking to portrait

Open ChintanRajpara opened this issue 6 years ago • 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?

ChintanRajpara avatar Nov 25 '19 11:11 ChintanRajpara

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.

sfreeman28 avatar Jan 22 '20 02:01 sfreeman28

I was testing upon android

ChintanRajpara avatar Jan 22 '20 14:01 ChintanRajpara

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

Yozine avatar Apr 30 '20 09:04 Yozine

no @Yozine

ChintanRajpara avatar May 08 '20 05:05 ChintanRajpara