react-native-gesture-handler
Version:
Declarative API exposing native platform touch and gesture system to React Native
71 lines • 3.13 kB
TypeScript
import type { PropsWithChildren, ReactElement } from 'react';
import * as React from 'react';
import type { DrawerLayoutAndroidProps as RNDrawerLayoutAndroidProps, FlatListProps as RNFlatListProps, ScrollViewProps as RNScrollViewProps, SwitchProps as RNSwitchProps, TextInputProps as RNTextInputProps } from 'react-native';
import { DrawerLayoutAndroid as RNDrawerLayoutAndroid, FlatList as RNFlatList, RefreshControl as RNRefreshControl, ScrollView as RNScrollView, Switch as RNSwitch, TextInput as RNTextInput } from 'react-native';
import type { NativeViewGestureHandlerProps } from '../handlers/NativeViewGestureHandler';
/**
* @deprecated use `RefreshControl` instead
*/
export declare const LegacyRefreshControl: {
(props: import("react-native").RefreshControlProps & NativeViewGestureHandlerProps & {
ref?: React.Ref<React.ComponentType<any> | null> | undefined;
}): React.JSX.Element;
displayName: any;
};
export type LegacyRefreshControl = typeof LegacyRefreshControl & RNRefreshControl;
declare const GHScrollView: {
(props: RNScrollViewProps & {
children?: React.ReactNode | undefined;
} & NativeViewGestureHandlerProps & {
ref?: React.Ref<React.ComponentType<any> | null> | undefined;
}): React.JSX.Element;
displayName: any;
};
/**
* @deprecated use `ScrollView` instead
*/
export declare const LegacyScrollView: (props: RNScrollViewProps & NativeViewGestureHandlerProps & {
ref?: React.Ref<RNScrollView | null>;
}) => React.JSX.Element;
export type LegacyScrollView = typeof GHScrollView & RNScrollView;
/**
* @deprecated use `Switch` instead
*/
export declare const LegacySwitch: {
(props: RNSwitchProps & NativeViewGestureHandlerProps & {
ref?: React.Ref<React.ComponentType<any> | null> | undefined;
}): React.JSX.Element;
displayName: any;
};
export type LegacySwitch = typeof LegacySwitch & RNSwitch;
/**
* @deprecated use `RefreshControl` instead
*/
export declare const LegacyTextInput: {
(props: RNTextInputProps & NativeViewGestureHandlerProps & {
ref?: React.Ref<React.ComponentType<any> | null> | undefined;
}): React.JSX.Element;
displayName: any;
};
export type LegacyTextInput = typeof LegacyTextInput & RNTextInput;
/**
* @deprecated use `DrawerLayoutAndroid` instead
*/
export declare const LegacyDrawerLayoutAndroid: {
(props: RNDrawerLayoutAndroidProps & {
children?: React.ReactNode | undefined;
} & NativeViewGestureHandlerProps & {
ref?: React.Ref<React.ComponentType<any> | null> | undefined;
}): React.JSX.Element;
displayName: any;
};
export type LegacyDrawerLayoutAndroid = typeof LegacyDrawerLayoutAndroid & RNDrawerLayoutAndroid;
/**
* @deprecated use `FlatList` instead
*/
export declare const LegacyFlatList: <ItemT>(props: PropsWithChildren<Omit<RNFlatListProps<ItemT>, "renderScrollComponent"> & NativeViewGestureHandlerProps & {
ref?: React.Ref<RNFlatList<ItemT> | null>;
}>) => ReactElement | null;
export type LegacyFlatList<ItemT = any> = typeof LegacyFlatList & RNFlatList<ItemT>;
export {};
//# sourceMappingURL=GestureComponents.d.ts.map