Files
mattermost-mobile/types/modules/react-native-keyboard-tracking-view.d.ts
Daniel Espino García afd818996e Improve autocomplete behaviour (#6559)
* Fix positioning issues with Autocomplete

* Fix positioning for iOS and iPad

* Adapt search to new autocomplete approach

* Adapt for android

* Fix lint

* Fix calculations on channel edit

* Address feedback

* Address feedback

Co-authored-by: Daniel Espino <danielespino@MacBook-Pro-de-Daniel.local>
2022-08-13 08:34:26 -04:00

28 lines
1.0 KiB
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
declare module 'react-native-keyboard-tracking-view' {
import {ViewProps} from 'react-native';
export interface KeyboardTrackingViewRef {
pauseTracking: (id: string) => void;
resumeTracking: (id: string) => void;
resetScrollView: (id: string) => void;
setNativeProps(nativeProps: object): void;
getNativeProps: () => Promise<KeyboardTrackingViewNativeProps>;
}
type KeyboardTrackingViewNativeProps = {
contentTopInset: number;
keyboardHeight: number;
trackingViewHeight: number;
}
interface KeyboardTrackingViewProps extends ViewProps{
accessoriesContainerID?: string;
normalList?: boolean;
scrollViewNativeID?: string;
viewInitialOffsetY?: number;
}
export const KeyboardTrackingView: React.ForwardRefExoticComponent<KeyboardTrackingViewProps & React.RefAttributes<KeyboardTrackingViewRef>>;
}