Skip to content

Commit

Permalink
Merge pull request #92 from wordpress-mobile/fix/pass-the-original-ev…
Browse files Browse the repository at this point in the history
…ent-onFocus

Pass the original RN event to the `onPress` callback
  • Loading branch information
daniloercoli authored Dec 10, 2018
2 parents 4e404ae + f5651eb commit 0038145
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/AztecView.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ class AztecView extends React.Component {
TextInputState.focusTextInput(ReactNative.findNodeHandle(this));
}

_onPress = () => {
this.focus(); // Call to move the focus in RN way (TextInputState)
this._onFocus(); // Check if there are listeners set on the focus event
_onPress = (event) => {
this.focus(event); // Call to move the focus in RN way (TextInputState)
this._onFocus(event); // Check if there are listeners set on the focus event
}

render() {
Expand Down

0 comments on commit 0038145

Please sign in to comment.