I want to set portrait mode in my react native android application, I tried to
- set
android:screenOrientation="portrait"in my AndroidManifest.xmlfile, - adding orientation programmatically in my activity as
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);but none of these is working.
Note: I have added react-native-navigation in my project
Any inputs to resolve this? Thanks.