fix: KeyboardAvoidingView _updateBottomIfNecessary typo (#32894)
Summary: While working on a fix for https://github.com/facebook/react-native/issues/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: https://github.com/facebook/react-native/pull/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
This commit is contained in:
Родитель
a054379a54
Коммит
0cc80b4d0c
|
@ -87,7 +87,7 @@ class KeyboardAvoidingView extends React.Component<Props, State> {
|
||||||
|
|
||||||
_onKeyboardChange = (event: ?KeyboardEvent) => {
|
_onKeyboardChange = (event: ?KeyboardEvent) => {
|
||||||
this._keyboardEvent = event;
|
this._keyboardEvent = event;
|
||||||
this._updateBottomIfNecesarry();
|
this._updateBottomIfNecessary();
|
||||||
};
|
};
|
||||||
|
|
||||||
_onLayout = (event: ViewLayoutEvent) => {
|
_onLayout = (event: ViewLayoutEvent) => {
|
||||||
|
@ -99,7 +99,7 @@ class KeyboardAvoidingView extends React.Component<Props, State> {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wasFrameNull) {
|
if (wasFrameNull) {
|
||||||
this._updateBottomIfNecesarry();
|
this._updateBottomIfNecessary();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.props.onLayout) {
|
if (this.props.onLayout) {
|
||||||
|
@ -107,7 +107,7 @@ class KeyboardAvoidingView extends React.Component<Props, State> {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
_updateBottomIfNecesarry = () => {
|
_updateBottomIfNecessary = () => {
|
||||||
if (this._keyboardEvent == null) {
|
if (this._keyboardEvent == null) {
|
||||||
this.setState({bottom: 0});
|
this.setState({bottom: 0});
|
||||||
return;
|
return;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче