Skip to content

Commit 0cc80b4

Browse files
gabrieldonadelfacebook-github-bot
authored andcommitted
fix: KeyboardAvoidingView _updateBottomIfNecessary typo (#32894)
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
1 parent a054379 commit 0cc80b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Libraries/Components/Keyboard/KeyboardAvoidingView.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class KeyboardAvoidingView extends React.Component<Props, State> {
8787

8888
_onKeyboardChange = (event: ?KeyboardEvent) => {
8989
this._keyboardEvent = event;
90-
this._updateBottomIfNecesarry();
90+
this._updateBottomIfNecessary();
9191
};
9292

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

101101
if (wasFrameNull) {
102-
this._updateBottomIfNecesarry();
102+
this._updateBottomIfNecessary();
103103
}
104104

105105
if (this.props.onLayout) {
106106
this.props.onLayout(event);
107107
}
108108
};
109109

110-
_updateBottomIfNecesarry = () => {
110+
_updateBottomIfNecessary = () => {
111111
if (this._keyboardEvent == null) {
112112
this.setState({bottom: 0});
113113
return;

0 commit comments

Comments
 (0)