forked from Ivasoft/mattermost-mobile
* 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>
28 lines
1.0 KiB
TypeScript
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>>;
|
|
}
|