I've started learning react native, and I created some simple landscape application, my issue is that the app doesn't display past the notch, which I'd want it to. I managed to solve it on portrait mode with:
<style name="ActivityTheme">
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowTranslucentNavigation">true</item>
</style>
But since my app is only on landscape, this doesn't really help me and doesn't work on landscape mode. I assume since it's not related to the StatusBar anymore when on landscape.
I'm using View and not SafeAreaView, so that shouldn't ignore the notch as far as I know. An example of what it looks like on the phone(xiaomi redmi note 9 pro, android 11):
Couldn't find any solution on google/docs, so hopefully someone here could help me. Thanks.
After researching this issue a bit I saw that the notch mentioned in this issue is actually the camera notch and it is different than the status and system bars. That's why it is not affected by most of the solutions for entering full-screen.
The way I managed to fix this issue was by going through these answers - Fullscreen App With DisplayCutout
I implemented this piece of code into my react native module logic
This is how it looked my Fullscreen.js module
Depending on how your application logic works, you can also implement these properties in your theme, as stated in the issue I mentioned above.