wonday / react-native-orientation-locker

A react-native module that can listen on orientation changing of device, get current orientation, lock to preferred orientation.
MIT License
757 stars 274 forks source link

Orientation change is not smooth and dimensions are not set correctly on changing orientation to certain mode in iOS #107

Open SAHITYASAI opened 4 years ago

SAHITYASAI commented 4 years ago

Actual Behaviour:

I'm loading a dynamic form in a SectionList. I am supposed to implement signature capture in landscape mode by navigating to another screen on button press and come back to forms screen on submitting the captured signature. To achieve this, i have used this module along with react-native-signature-capture module. Orientation changes are very slow and hence looks like a bug while navigating from forms screen to signature screen. I'm using react-navigation for navigating between screens. Also, dimensions are not set correctly on coming back to forms screen in portrait mode after implementing signature capture in landscape mode.

Expected Behaviour:

I need to implement signature capturing in another screen in landscape mode, pop back to forms screen and again change orientation back to portrait mode in iOS smoothly without any issues with setting dimension values. Can someone help me please. Thanks in advance.

Environment:

react-native: 0.61.1 react-native-orientation-locker: ^1.1.7

lucianomlima commented 4 years ago

I get the same behavior using:

react-native: 0.61.5 react-navigation: ^4.1.0 react-native-orientation-locker: ^1.1.8

@SAHITYASAI you get this resolved?

noumantahir commented 2 years ago

experiencing same issue, if app is started from landscape mode orientation while orientation locker locking to portrait, the dimensions returned are inverted...