question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android statusbar not translucent after deep link

See original GitHub issue

Is this a bug report?

yes

Have you read the Contributing Guidelines?

no

Environment

Steps to Reproduce

  1. Create new react native app
  2. Make statusbar translucent
      <View style={styles.container}>
        <StatusBar
          translucent
          backgroundColor='transparent'
        />
  1. 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>
  1. Make on press handler to handle deep linking
        <Text onPress={() => Linking.openURL('testapp://testapp')} style={styles.welcome}>
          Welcome to React Native!
        </Text>
  1. Press that text

Expected Behavior

Android statusbar will stay translucent

Actual Behavior

Android statusbar not translucent anymore

statusbar translucent screenshot_2017-10-28-23-00-05-029_com testapp

statubar not translucent screenshot_2017-10-28-23-00-11-595_com testapp

Reproducible Demo

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
umaulanacommented, Oct 30, 2017

@adrianomelo sure I will check that code and thanks for your reponses 👍

0reactions
adrianomelocommented, Oct 30, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found