I'm trying to integrate Unity into my React Native app and would like to be able to rotate the screen from landscape to portrait and vice versa when opening Unity. I tried using some libraries but ran into the problem of only being able to rotate for a very short distance before returning to the original state. I also tried writing code to rotate the screen in Unity but encountered problems when switching from landscape to portrait mode. When you then swipe the status bar down, the screen automatically returns to landscape mode.
Please let me know how I can handle the above problem?