Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29607

App faulty on re-opens after minimising with hardware "back" (affects screen, keyboard, status bar, deep links) - React Native Android

$
0
0

Sometimes when re-opening the app, the status bar becomes black and opaque at the top, and the keyboard behaviour with regards to content on-screen stops working. It is as if they've both been set to their defaults. This persists until the app is swiped closed and re-opened.

To reproduce:

Open your app and close it with hardware back button, then open recent apps, and open your app from there

"react-native": "0.61.5" - observed on physical device, does not occur on emulator (may be dependent on Android version).

My AndroidManifest.xml setting is android:windowSoftInputMode="adjustResize"

I have tried both using methods and props on the StatusBar component to style it - none work to prevent this issue:

StatusBar.setBackgroundColor("rgba(0,0,0,0)")StatusBar.setBarStyle("light-content")StatusBar.setTranslucent(true)

vs

<StatusBar barStyle="light-content" backgroundColor='rgba(0,0,0,0)' translucent/>

Similarly: on Android, deep links don't work when the app is already open in the background from pressing "back" out of the app. Minimising/closing the app by pressing home or force stopping is fine and deep links will work from this state.


Viewing all articles
Browse latest Browse all 29607

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>