software-mansion / software-mansion/react-native-screens

Android - TextInput Autofill not working

Open
#349 49 comments 23 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

platform:android type:bug
Dominant language
TypeScript
Stars
3.7k
Forks
714
Avg merge
2d 23h
Merged PRs (30d)
71

Description

"react-native": "0.61.4"
"react-native-screens: "2.0.0-alpha.5"

It seems that the library blocks the native autofill suggestions view. Also, there is no save password dialog after a successful login. (This dialog is auto popped-up by the Android framework).

<TextInput
              placeholder={'Username'}
              autoCompleteType={'email'}
 />
  <TextInput
              placeholder={'Password'}
              autoCompleteType={'password'}
              secureTextEntry={true}
/> 

Setting those props should be enough to trigger the autofill mechanism.

What we tried and did not work:

  • Update to a library version after the PR from #205 was merged.
  • Set the TextInput width to 99% on first render and then to 100%, as suggested
  • Set the TextInput editable prop to false on first render and then on true, as suggested

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is identified. Start by reproducing the provided React Native TextInput example on Android with the listed versions, then verify whether native autofill suggestions and the post-login save-password dialog appear; done means both Android behaviors work.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, react-native
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.