Sunday, November 8, 2026
HomeiOS Developmentjavascript - React Native Textinput wont name onchange on iOS

javascript – React Native Textinput wont name onchange on iOS

[ad_1]

I’ve an issue with my react-native app. I’ve easy enter for the observe, it really works as anticipated on Android, however on iOS onChange/onChangeText methodology isn’t known as. It’s bizarre as a result of i see right worth in enter, but when I console.log in onChange methodology, its by no means known as. What am I lacking right here?

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

const setNoteEdit = occasion => {
        const observe= occasion.nativeEvent.textual content;
        _setNoteEdit(observe);
        noteRef.present = observe;
    }

<TextInput multiline={true} 
                worth={noteEdit} onChange={setNoteEdit} autoCorrect={false} />

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments