No implementation for getSpecificOrientation on Android
enisinanaj opened this issue · 4 comments
enisinanaj commented
There is no implementation on android for the api method getSpecificOrientation(callback)
rsimbu89 commented
@enisinanaj When we can expect this fix with the latest npm package ?
https://www.npmjs.com/package/react-native-orientation
enisinanaj commented
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.
rsimbu89 commented
@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?
enisinanaj commented
I had to "unlock" the orientations as well