AndreiRadchenko / scenery

Scenery is a social media app where you can share your stunning photos of nature with like-minded naturalists.
https://play.google.com/store/apps/details?id=com.andriiradchenko.scenery
0 stars 0 forks source link

Form inside KeyboardAvoidingView flickering on input #7

Closed AndreiRadchenko closed 4 months ago

AndreiRadchenko commented 4 months ago

Description Auth screens contain login and register form. On Expo 50 I faced with problem Keyboard Flickering on TextInput with secureTextEntry on iOs devices.

AndreiRadchenko commented 4 months ago

I tried next approaches to fix bug:

  1. Solution with modifying react-native library and save modification with patch-package. Leave TextInput with secureTextEntry={isPasswordHidden} prop.

    • Prof: Learn approach with node_modules modification. No needs in Password TextInput modification.

    • Cons: Keyboard still flickering though KeyboardAvoidingView doesn't

  2. Refuse from secureTextEntry={isPasswordHidden} prop solve Keyboard Flickering problem. Cover TextInput with another Text that shows dots or chars according to isPasswordHidden

    • Prof: Simple implementation.

    • Cons: No cursor visible in upper Text

  3. Implement function for handle input with * and pass it to onTextChange. This is approach I've implemented.

    • Prof: No problem with cursor.

    • Cons: Relatively complicated implementation

solution description

AndreiRadchenko commented 4 months ago

Committ to fix 6f29fbbcc299106897127651bac9b2b9a2a48296

AndreiRadchenko commented 4 months ago

this commit resolve issue 6f29fbb