Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

707
Views
React Native, why secureTextEntry not working?

Why is my secureTextEntry not working ? Here is my code:

export default function App() {
  const { t } = useTranslation();
  const [value, setValue] = useState('');
  return (
    <View style={s.container}>
      <Input value='' placeholder='Passwort' style={[InputStyles.normal, s.inputMargin]} />
      <Input value={value} onChangeText={(e) => setValue(e)} placeholder='E-Mail' style={InputStyles.normal_icon} icon={<AntDesign name="stepforward" size={24} color="black" />} multiline secureTextEntry={true} keyboardType='default' />
    </View>
  );
}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

secureTextEntry does not work with multiline. Here is what React Native’s documentation says:

secureTextEntry

If true, the text input obscures the text entered so that sensitive text like passwords stay secure. The default value is false. Does not work with multiline={true}.

In order to have it working, remove multiline propriety, like so:

export default function App() {
  const { t } = useTranslation();
  const [value, setValue] = useState('');
  return (
    <View style={s.container}>
      <Input value='' placeholder='Passwort' style={[InputStyles.normal, s.inputMargin]} />
      <Input value={value} onChangeText={(e) => setValue(e)} placeholder='E-Mail' style={InputStyles.normal_icon} icon={<AntDesign name="stepforward" size={24} color="black" />} secureTextEntry={true} keyboardType='default' />
    </View>
  );
}
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!