@legendapp/state
Version:
21 lines (20 loc) • 1.38 kB
TypeScript
/// <reference types="react" />
import { FCReactive, FCReactiveObject } from '@legendapp/state/react';
import { ActivityIndicator, ActivityIndicatorProps, Button, ButtonProps, FlatList, FlatListProps, Image, ImageProps, Pressable, PressableProps, ScrollView, ScrollViewProps, SectionList, SectionListProps, Switch, SwitchProps, Text, TextInput, TextInputProps, TextProps, TouchableWithoutFeedback, TouchableWithoutFeedbackProps, View, ViewProps } from 'react-native';
export declare function enableReactNativeComponents(): void;
declare module '/state/react' {
interface IReactive extends FCReactiveObject<JSX.IntrinsicElements> {
ActivityIndicator: FCReactive<ActivityIndicator, ActivityIndicatorProps>;
Button: FCReactive<Button, ButtonProps>;
FlatList: FCReactive<FlatList, FlatListProps<any>>;
Image: FCReactive<Image, ImageProps>;
Pressable: FCReactive<typeof Pressable, PressableProps>;
ScrollView: FCReactive<ScrollView, ScrollViewProps>;
SectionList: FCReactive<SectionList, SectionListProps<any>>;
Switch: FCReactive<Switch, SwitchProps>;
Text: FCReactive<Text, TextProps>;
TextInput: FCReactive<TextInput, TextInputProps>;
TouchableWithoutFeedback: FCReactive<TouchableWithoutFeedback, TouchableWithoutFeedbackProps>;
View: FCReactive<View, ViewProps>;
}
}