UNPKG

2.34 kBTypeScriptView Raw
1import * as React from 'react';
2import { PropsWithChildren, ForwardedRef, RefAttributes, ReactElement } from 'react';
3import { 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';
4import { NativeViewGestureHandlerProps } from '../handlers/NativeViewGestureHandler';
5export declare const RefreshControl: React.ForwardRefExoticComponent<import("react-native").RefreshControlProps & NativeViewGestureHandlerProps & React.RefAttributes<React.ComponentType<any>>>;
6export type RefreshControl = typeof RefreshControl & RNRefreshControl;
7declare const GHScrollView: React.ForwardRefExoticComponent<RNScrollViewProps & {
8 children?: React.ReactNode;
9} & NativeViewGestureHandlerProps & React.RefAttributes<React.ComponentType<any>>>;
10export declare const ScrollView: React.ForwardRefExoticComponent<RNScrollViewProps & NativeViewGestureHandlerProps & React.RefAttributes<RNScrollView>>;
11export type ScrollView = typeof GHScrollView & RNScrollView;
12export declare const Switch: React.ForwardRefExoticComponent<RNSwitchProps & NativeViewGestureHandlerProps & React.RefAttributes<React.ComponentType<any>>>;
13export type Switch = typeof Switch & RNSwitch;
14export declare const TextInput: React.ForwardRefExoticComponent<RNTextInputProps & NativeViewGestureHandlerProps & React.RefAttributes<React.ComponentType<any>>>;
15export type TextInput = typeof TextInput & RNTextInput;
16export declare const DrawerLayoutAndroid: React.ForwardRefExoticComponent<RNDrawerLayoutAndroidProps & {
17 children?: React.ReactNode;
18} & NativeViewGestureHandlerProps & React.RefAttributes<React.ComponentType<any>>>;
19export type DrawerLayoutAndroid = typeof DrawerLayoutAndroid & RNDrawerLayoutAndroid;
20export declare const FlatList: <ItemT = any>(props: React.PropsWithChildren<RNFlatListProps<ItemT> & React.RefAttributes<FlatList<ItemT>> & NativeViewGestureHandlerProps>, ref: React.ForwardedRef<FlatList<ItemT>>) => ReactElement | null;
21export type FlatList<ItemT = any> = typeof FlatList & RNFlatList<ItemT>;
22export {};