Skip to content

Commit

Permalink
Merge pull request #85 from wordpress-mobile/expose-focus-method
Browse files Browse the repository at this point in the history
Expose focus method
  • Loading branch information
koke authored Nov 29, 2018
2 parents b65af13 + 85671cc commit 1e0ed52
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/AztecView.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,14 @@ class AztecView extends React.Component {
onSelectionChange(selectionStart, selectionEnd, text);
}

_onPress = () => {
focus = () => {
TextInputState.focusTextInput(ReactNative.findNodeHandle(this));
}

_onPress = () => {
this.focus();
}

render() {
const { onActiveFormatsChange, ...otherProps } = this.props
return (
Expand Down

0 comments on commit 1e0ed52

Please sign in to comment.