Android statusbar not translucent after deep link
See original GitHub issueIs this a bug report?
yes
Have you read the Contributing Guidelines?
no
Environment
Steps to Reproduce
- Create new react native app
- Make statusbar translucent
<View style={styles.container}>
<StatusBar
translucent
backgroundColor='transparent'
/>
- Add deep link to androidManifest.xml
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="testapp" android:host="testapp" />
</intent-filter>
- Make on press handler to handle deep linking
<Text onPress={() => Linking.openURL('testapp://testapp')} style={styles.welcome}>
Welcome to React Native!
</Text>
- Press that text
Expected Behavior
Android statusbar will stay translucent
Actual Behavior
Android statusbar not translucent anymore
statusbar translucent
statubar not translucent
Reproducible Demo
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
React native deep link breaks UI in Android - Stack Overflow
The possible reason for this is a different entry point for the Android App. You need to make sure that your status bar...
Read more >Why would I want to fitsSystemWindows? | by Ian Lake - Medium
Most of the time, your app won't need to draw under the status bar or the ... a transparent navigation bar — by...
Read more >Deep linking on Android - Unity - Manual
Enabling deep linking for Android applications · In the Project window, go to Assets > Plugins > Android. · Create a new file...
Read more >android status bar can not be transparent? - Microsoft Q&A
1 Answer ; "android:statusBarColor" · @android:color/transparent ; "android:windowTranslucentStatus" · true ; "android:fitsSystemWindows" · true ...
Read more >Introduction | Home Assistant Companion Docs
Android You can send a specific deep link to an app by using ... have been recently used to clear the notification: this...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@adrianomelo sure I will check that code and thanks for your reponses 👍
No worries, I hope that using
android:launchMode="singleTask"
solves the problem of your application.I agree with you. The status bar should stay translucent. I will investigate this problem, but it might take some time. I have just started to contribute to this project on my spare time.
If you have the time to debug it, this code is a good place to start.
And it doesn’t look like a critical bug, given that most of the people are probably using
android:launchMode="singleTask"
with deep linking.