UNPKG

react-native-gesture-handler

Version:

Experimental implementation of a new declarative API for gesture handling in react-native

23 lines (22 loc) 2.39 kB
import * as React from 'react'; import { PropsWithChildren, ForwardedRef, RefAttributes, ReactElement } from 'react'; import { ScrollView as RNScrollView, ScrollViewProps as RNScrollViewProps, Switch as RNSwitch, SwitchProps as RNSwitchProps, TextInput as RNTextInput, TextInputProps as RNTextInputProps, DrawerLayoutAndroid as RNDrawerLayoutAndroid, DrawerLayoutAndroidProps as RNDrawerLayoutAndroidProps, FlatList as RNFlatList, FlatListProps as RNFlatListProps, RefreshControl as RNRefreshControl } from 'react-native'; import { NativeViewGestureHandlerProps } from '../handlers/NativeViewGestureHandler'; export declare const RefreshControl: React.ForwardRefExoticComponent<import("react-native").RefreshControlProps & NativeViewGestureHandlerProps & React.RefAttributes<React.ComponentType<any>>>; export declare type RefreshControl = typeof RefreshControl & RNRefreshControl; declare const GHScrollView: React.ForwardRefExoticComponent<RNScrollViewProps & { children?: React.ReactNode; } & NativeViewGestureHandlerProps & React.RefAttributes<React.ComponentType<any>>>; export declare const ScrollView: React.ForwardRefExoticComponent<RNScrollViewProps & NativeViewGestureHandlerProps & React.RefAttributes<RNScrollView>>; export declare type ScrollView = typeof GHScrollView & RNScrollView; export declare const Switch: React.ForwardRefExoticComponent<RNSwitchProps & NativeViewGestureHandlerProps & React.RefAttributes<React.ComponentType<any>>>; export declare type Switch = typeof Switch & RNSwitch; export declare const TextInput: React.ForwardRefExoticComponent<RNTextInputProps & NativeViewGestureHandlerProps & React.RefAttributes<React.ComponentType<any>>>; export declare type TextInput = typeof TextInput & RNTextInput; export declare const DrawerLayoutAndroid: React.ForwardRefExoticComponent<RNDrawerLayoutAndroidProps & { children?: React.ReactNode; } & NativeViewGestureHandlerProps & React.RefAttributes<React.ComponentType<any>>>; export declare type DrawerLayoutAndroid = typeof DrawerLayoutAndroid & RNDrawerLayoutAndroid; export declare const FlatList: <ItemT = any>(props: React.PropsWithChildren<RNFlatListProps<ItemT> & React.RefAttributes<FlatList<ItemT>> & NativeViewGestureHandlerProps>, ref: React.ForwardedRef<FlatList<ItemT>>) => ReactElement | null; export declare type FlatList<ItemT = any> = typeof FlatList & RNFlatList<ItemT>; export {};