Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

212
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda