software-mansion / react-native-screens

Native navigation primitives for your React Native app.
MIT License
3.01k stars 510 forks source link

Android keyboard adjustResize not working with status bar translucent #2308

Open 1880akshay opened 3 weeks ago

1880akshay commented 3 weeks ago

Description

In android, the adjustResize soft input mode is not working as expected when status bar is set as translucent. react-native version: 0.74.3 react-native-screens version: 3.34.0

Steps to reproduce

  1. Create a basic native stack navigator and add a single screen
  2. In screen options, set statusBarTranslucent as true.
  3. Observe the issue with input box rendered in the screen.

With status bar translucent: (issue repro)

https://github.com/user-attachments/assets/34720672-c723-439a-9bda-98b473cef5ec

Without status bar translucent: (no issue)

https://github.com/user-attachments/assets/67289ce4-f3a1-4b53-9275-f5024733370c

Snack or a link to a repository

https://github.com/1880akshay/RN_NewArch_TextInput/tree/android-keyboard

Screens version

3.34.0

React Native version

0.74.3

Platforms

Android

JavaScript runtime

None

Workflow

None

Architecture

Paper (Old Architecture)

Build type

Debug mode

Device

Android emulator

Device model

No response

Acknowledgements

Yes

nikhiltekwani09 commented 3 weeks ago

Have raised the PR for the fix: https://github.com/software-mansion/react-native-screens/pull/2311