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

No implementation for getSpecificOrientation on Android

Open enisinanaj opened this issue 5 years ago • 4 comments

There is no implementation on android for the api method getSpecificOrientation(callback)

enisinanaj avatar Jul 26 '19 15:07 enisinanaj

@enisinanaj When we can expect this fix with the latest npm package ? https://www.npmjs.com/package/react-native-orientation

rsimbu89 avatar Jan 13 '20 09:01 rsimbu89

Don't know. There was a suggested fix I found somewhere online but didn't work for me. In my case I just create an empty method with that signature just so it wouldn't crash.

enisinanaj avatar Jan 13 '20 12:01 enisinanaj

@enisinanaj I'm not getting orientation changes in Android, even though adding addOrientationListener, After adding unlockAllOrientations on componentDidMount is its showing orientation changes. Is that necessary to add that?

rsimbu89 avatar Jan 13 '20 12:01 rsimbu89

I had to "unlock" the orientations as well

enisinanaj avatar Jan 13 '20 12:01 enisinanaj