Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix TextInput autocorrect (facebook#7496)
TextInput autocorrect was broken by a change to batch event handling in React Native: facebook/react@9f11f8c This fix uses the same approach as facebook@0cd2904 The problem is that TextInput's _onChange handler relied on this.props.value being updated synchronously when calling this.props.onChangeText(text). However, this assumption was broken when React Native event handling started being batched. The fix is to move the code that relies on this.props.value being up-to-date to componentDidUpdate.
- Loading branch information