Skip to content

Commit

Permalink
fix: KeyboardAvoidingView _updateBottomIfNecessary typo (#32894)
Browse files Browse the repository at this point in the history
Summary:
While working on a fix for #29974 I notice that the `_updateBottomIfNecessary` function inside `KeyboardAvoidingView` was misspelled, so I decided to open a PR fixing it.

## Changelog

[General] [Fixed] - Fix typo in _updateBottomIfNecessary function on KeyboardAvoidingView component

Pull Request resolved: #32894

Test Plan: Shouldn't require much testing as this is just renaming a private function of `KeyboardAvoidingView`

Reviewed By: philIip

Differential Revision: D33620554

Pulled By: cortinico

fbshipit-source-id: 69b8969bef09cf58b9b1c8a9154dc52686187f8a
  • Loading branch information
gabrieldonadel authored and facebook-github-bot committed Jan 17, 2022
1 parent a054379 commit 0cc80b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Libraries/Components/Keyboard/KeyboardAvoidingView.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class KeyboardAvoidingView extends React.Component<Props, State> {

_onKeyboardChange = (event: ?KeyboardEvent) => {
this._keyboardEvent = event;
this._updateBottomIfNecesarry();
this._updateBottomIfNecessary();
};

_onLayout = (event: ViewLayoutEvent) => {
Expand All @@ -99,15 +99,15 @@ class KeyboardAvoidingView extends React.Component<Props, State> {
}

if (wasFrameNull) {
this._updateBottomIfNecesarry();
this._updateBottomIfNecessary();
}

if (this.props.onLayout) {
this.props.onLayout(event);
}
};

_updateBottomIfNecesarry = () => {
_updateBottomIfNecessary = () => {
if (this._keyboardEvent == null) {
this.setState({bottom: 0});
return;
Expand Down

0 comments on commit 0cc80b4

Please sign in to comment.