Skip to content

KeyboardProvider breaks translucent system navigation bar #119

Closed
@whalemare

Description

@whalemare

Describe the bug
When I wrap my app with

return <KeyboardProvider statusBarTranslucent>{children}</KeyboardProvider>

Android system navigation bar becomes colored, not translucent

Code snippet

return <KeyboardProvider statusBarTranslucent>{children}</KeyboardProvider>

styles.xml

    <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="android:forceDarkAllowed" tools:ignore="NewApi">false</item>

        <item name="android:windowTranslucentStatus">true</item>
        <item name="android:windowTranslucentNavigation">true</item>
        <item name="android:statusBarColor">@android:color/transparent</item>
        <item name="android:navigationBarColor">@android:color/transparent</item>
    </style>

Repo for reproducing
I can do it later if you need it

To Reproduce

  1. Wrap app with KeyboardProvider
  2. Use translucent navigation
  3. Run app

Expected behavior
Снимок экрана 2023-02-23 в 12 56 00

Actual behavior
Снимок экрана 2023-02-23 в 12 54 46

Smartphone (please complete the following information):

  • Desktop OS: MacOS
  • Device: Android Nexus 5
  • OS: API 33
  • RN version: 0.71.2
  • RN architecture: old, paper
  • JS engine: Hermes
  • Library version: 1.4.3

Additional context
no applicable

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions