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

214
Views
React Native Textinput wont call onchange on iOS

I have a problem with my react-native app. I have simple input for the note, it works as expected on Android, but on iOS onChange/onChangeText method is never called. It is weird because i see correct value in input, but if I console.log in onChange method, its never called. What am I missing here?

const [noteEdit, _setNoteEdit] = useState(note)
const noteRef = React.useRef(noteEdit);

const setNoteEdit = event => {
        const note= event.nativeEvent.text;
        _setNoteEdit(note);
        noteRef.current = note;
    }

<TextInput multiline={true} 
                value={noteEdit} onChange={setNoteEdit} autoCorrect={false} />
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

you need to try this below hope it's working

 const [noteEdit, _setNoteEdit] = useState('')

<TextInput multiline={true} 
            value={noteEdit} onChangeText={(text)=>_setNoteEdit(text)} autoCorrect={false} />
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!