react-native-screens icon indicating copy to clipboard operation
react-native-screens copied to clipboard

Add bluring inputs on disactivating screen

Open osdnk opened this issue 5 years ago • 3 comments

Motivation

This a solution for https://github.com/kmagiera/react-native-screens/issues/67

Keyboard doesn't dismiss after navigating to another screen and back. Even on Keyboard.dismiss() call. It seems like without Screens keyboard is dismissed on every navigation.

Repo: snack.expo.io/@andrey/keyboard-bug Focus TextInput -> Next Screen -> Back -> Keyboard is not dismissing

Changes

Before setting screen to inactive, I added walking through all subviews and checking whether it's TextInput. If yes, it's being blurred then.

osdnk avatar Feb 26 '19 09:02 osdnk

I can confirm this fixes the problem in iOS for us. ping @kmagiera do you think this can be merged?

buoyad avatar May 20 '19 19:05 buoyad

@WoLewicki can this maybe land into master?

hirbod avatar May 19 '20 22:05 hirbod

cc @osdnk

WoLewicki avatar May 21 '20 07:05 WoLewicki