Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing visibility of status bar affect flexibility on android #28276

Closed
devildummy opened this issue Mar 10, 2020 · 4 comments
Closed

Changing visibility of status bar affect flexibility on android #28276

devildummy opened this issue Mar 10, 2020 · 4 comments
Labels
Needs: Triage 🔍 Platform: Android Android applications. Resolution: Locked This issue was locked by the bot.

Comments

@devildummy
Copy link

devildummy commented Mar 10, 2020

Description:

With default android:windowSoftInputMode, when you have a { flex: 1 } view

View with wide border

close

and open keyboard, it must push the view above the keyboard.

Keybord open when status bar is visible (look at the red bottom border above keyboard)

open_true

But when you hide the status bar and open keyboard, view stay the same.

Keybord open when status bar is hidden (there is no red bottom border above keyboard)

open_false

React Native version: 0.61.5

Steps To Reproduce

  1. Create view with flex: 1 and text input
  2. Tap the input

If your status bar is hidden (by StatusBar.setHidden(true) or by <StatusBar hidden={true} />, doesnt matter), keyboard will not push view to top

Expected Results

StatusBar doesnt affect flexibility

Additioanl info

Hiding / showing navbar work as expected

Snack example, but bug dont reproduce on it) just a code to copy
https://snack.expo.io/@devildummy/surprised-juice-box
idk how to change android:windowSoftInputMode on Snack, maybe here is a problem, if you create own project with exact code, you will see a problem

@chrisglein
Copy link

Interesting issue, thank you for the screenshots. Can you put together a Snack of this minimal repo to make it easier to investigate?

@devildummy
Copy link
Author

@chrisglein Add link to additional info, but on Snack this bug dont reproduce, so it just code to copy :)

@stale
Copy link

stale bot commented Jun 10, 2020

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Jun 10, 2020
@fabOnReact
Copy link
Contributor

not an issue, read https://reactnative.dev/docs/keyboardavoidingview and then please close

@stale stale bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Jun 10, 2020
@facebook facebook locked as resolved and limited conversation to collaborators Oct 1, 2021
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs: Triage 🔍 Platform: Android Android applications. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants