bamlab / bamlab/react-native-hide-with-keyboard

TextInput autoFocus

Open
#9 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
123
Forks
12
PR merge metrics
No merged PRs in 30d

Description

Hey!

First of all, I'd like to thank you for sharing this component, it's very useful!

So, I'm using the `HideWithKeyboard`, and most of my screens have a `TextInput` with `autoFocus` set to `true`, so it opens the keyboard right when the screens are opened.

I've been noticing some inconsistency with this, sometimes my content that should be hidden is actually hidden, but sometimes it still shows up. If I close the keyboard and open it again by clicking on the `TextInput` it always works. It seems to be something with `autoFocus`.

I've been only testing with Android, so I don't know if the same happens with iOS devices.

```
Versions
react-native-hide-with-keyboard: 1.1.1
react-native-cli: 2.0.1
react-native: 0.55.1
```

Thanks!

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue on Android using HideWithKeyboard with a TextInput whose autoFocus is true, using the versions reported in the issue. Compare the initial keyboard opening with reopening it by tapping the input; done means content that should be hidden is consistently hidden when the screen opens.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.