diff --git a/lib/components/Keyboard/KeyboardInput/KeyboardAccessoryView.tsx b/lib/components/Keyboard/KeyboardInput/KeyboardAccessoryView.tsx index 56bedf4e4c..00051ef3e9 100644 --- a/lib/components/Keyboard/KeyboardInput/KeyboardAccessoryView.tsx +++ b/lib/components/Keyboard/KeyboardInput/KeyboardAccessoryView.tsx @@ -9,7 +9,6 @@ import { BackHandler, LayoutChangeEvent } from 'react-native'; -import {LogService} from '../../../../src/services'; import KeyboardTrackingView, {KeyboardTrackingViewProps} from '../KeyboardTracking/KeyboardTrackingView'; import CustomKeyboardView from './CustomKeyboardView'; import KeyboardUtils from './utils/KeyboardUtils'; @@ -54,12 +53,6 @@ export type KeyboardAccessoryViewProps = kbTrackingViewProps & { * Callback that will be called once the keyboard has been closed */ onKeyboardResigned?: () => void; - /** - * @deprecated - * Please use 'scrollBehavior' prop instead - * The scrolling behavior (use KeyboardAccessoryView.scrollBehaviors.NONE | SCROLL_TO_BOTTOM_INVERTED_ONLY | FIXED_OFFSET) - */ - iOSScrollBehavior?: number; children?: React.ReactChild; }; @@ -69,10 +62,6 @@ export type KeyboardAccessoryViewProps = kbTrackingViewProps & { * @gif: https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/KeyboardAccessoryView/KeyboardAccessoryView.gif?raw=true */ class KeyboardAccessoryView extends Component { - /** - * @deprecated Please use KeyboardAccessoryView.scrollBehaviors instead - */ - static iosScrollBehaviors = KeyboardTrackingView.scrollBehaviors; //TODO: remove on V7 static scrollBehaviors = KeyboardTrackingView.scrollBehaviors; static defaultProps = { @@ -99,12 +88,6 @@ class KeyboardAccessoryView extends Component { this.registerForKeyboardResignedEvent(); this.registerAndroidBackHandler(); - - if (props.iOSScrollBehavior) { - LogService.warn(`The 'Keyboard.KeyboardAccessoryView' component's prop 'iOSScrollBehavior' is deprecated. - Please use 'scrollBehavior' prop instead and pass it 'Keyboard.KeyboardAccessoryView.scrollBehaviors' - ('Keyboard.KeyboardAccessoryView.iosScrollBehaviors' enum is deprecated).`); - } } componentWillUnmount() { @@ -193,14 +176,13 @@ class KeyboardAccessoryView extends Component { onItemSelected, onRequestShowKeyboard, scrollBehavior, - iOSScrollBehavior, ...others } = this.props; return ( (this.trackingViewRef = r)} style={styles.trackingToolbarContainer} onLayout={this.onContainerComponentHeightChanged}