react-native-paper
Version:
Material design for React Native
187 lines (186 loc) • 18.6 kB
TypeScript
/// <reference types="react" />
declare const FAB: (import("react").ComponentType<Pick<import("../../types").$RemoveChildren<import("react").ComponentType<Pick<import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View> & {
children: import("react").ReactNode;
style?: false | import("react-native").RegisteredStyle<import("react-native").ViewStyle> | import("react-native").Animated.Value | import("react-native").Animated.AnimatedInterpolation | import("react-native").Animated.WithAnimatedObject<import("react-native").ViewStyle> | import("react-native").Animated.WithAnimatedArray<import("react-native").ViewStyle | import("react-native").Falsy | import("react-native").RegisteredStyle<import("react-native").ViewStyle> | import("react-native").RecursiveArray<import("react-native").ViewStyle | import("react-native").Falsy | import("react-native").RegisteredStyle<import("react-native").ViewStyle>> | readonly (import("react-native").ViewStyle | import("react-native").Falsy | import("react-native").RegisteredStyle<import("react-native").ViewStyle>)[]> | null | undefined;
theme: ReactNativePaper.Theme;
}, keyof import("react-native").ViewProps | keyof import("react").RefAttributes<import("react-native").View>> & {
theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View> & {
children: import("react").ReactNode;
style?: false | import("react-native").RegisteredStyle<import("react-native").ViewStyle> | import("react-native").Animated.Value | import("react-native").Animated.AnimatedInterpolation | import("react-native").Animated.WithAnimatedObject<import("react-native").ViewStyle> | import("react-native").Animated.WithAnimatedArray<import("react-native").ViewStyle | import("react-native").Falsy | import("react-native").RegisteredStyle<import("react-native").ViewStyle> | import("react-native").RecursiveArray<import("react-native").ViewStyle | import("react-native").Falsy | import("react-native").RegisteredStyle<import("react-native").ViewStyle>> | readonly (import("react-native").ViewStyle | import("react-native").Falsy | import("react-native").RegisteredStyle<import("react-native").ViewStyle>)[]> | null | undefined;
theme: ReactNativePaper.Theme;
}> & (({ style, theme, ...rest }: import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View> & {
children: import("react").ReactNode;
style?: false | import("react-native").RegisteredStyle<import("react-native").ViewStyle> | import("react-native").Animated.Value | import("react-native").Animated.AnimatedInterpolation | import("react-native").Animated.WithAnimatedObject<import("react-native").ViewStyle> | import("react-native").Animated.WithAnimatedArray<import("react-native").ViewStyle | import("react-native").Falsy | import("react-native").RegisteredStyle<import("react-native").ViewStyle> | import("react-native").RecursiveArray<import("react-native").ViewStyle | import("react-native").Falsy | import("react-native").RegisteredStyle<import("react-native").ViewStyle>> | readonly (import("react-native").ViewStyle | import("react-native").Falsy | import("react-native").RegisteredStyle<import("react-native").ViewStyle>)[]> | null | undefined;
theme: ReactNativePaper.Theme;
}) => JSX.Element), {}>> & {
icon: import("../Icon").IconSource;
label?: string | undefined;
uppercase?: boolean | undefined;
accessibilityLabel?: string | undefined;
accessibilityState?: import("react-native").AccessibilityState | undefined;
animated?: boolean | undefined;
small?: boolean | undefined;
color?: string | undefined;
disabled?: boolean | undefined;
visible?: boolean | undefined;
loading?: boolean | undefined;
onPress?: (() => void) | undefined;
onLongPress?: (() => void) | undefined;
style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
theme: ReactNativePaper.Theme;
testID?: string | undefined;
}, "label" | "small" | "style" | "pointerEvents" | "color" | "onLayout" | "onPress" | "onLongPress" | "testID" | "nativeID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "icon" | "visible" | "key" | "hitSlop" | "removeClippedSubviews" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "uppercase" | "disabled" | "loading" | "animated"> & {
theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("../../types").$RemoveChildren<import("react").ComponentType<Pick<import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View> & {
children: import("react").ReactNode;
style?: false | import("react-native").RegisteredStyle<import("react-native").ViewStyle> | import("react-native").Animated.Value | import("react-native").Animated.AnimatedInterpolation | import("react-native").Animated.WithAnimatedObject<import("react-native").ViewStyle> | import("react-native").Animated.WithAnimatedArray<import("react-native").ViewStyle | import("react-native").Falsy | import("react-native").RegisteredStyle<import("react-native").ViewStyle> | import("react-native").RecursiveArray<import("react-native").ViewStyle | import("react-native").Falsy | import("react-native").RegisteredStyle<import("react-native").ViewStyle>> | readonly (import("react-native").ViewStyle | import("react-native").Falsy | import("react-native").RegisteredStyle<import("react-native").ViewStyle>)[]> | null | undefined;
theme: ReactNativePaper.Theme;
}, keyof import("react-native").ViewProps | keyof import("react").RefAttributes<import("react-native").View>> & {
theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View> & {
children: import("react").ReactNode;
style?: false | import("react-native").RegisteredStyle<import("react-native").ViewStyle> | import("react-native").Animated.Value | import("react-native").Animated.AnimatedInterpolation | import("react-native").Animated.WithAnimatedObject<import("react-native").ViewStyle> | import("react-native").Animated.WithAnimatedArray<import("react-native").ViewStyle | import("react-native").Falsy | import("react-native").RegisteredStyle<import("react-native").ViewStyle> | import("react-native").RecursiveArray<import("react-native").ViewStyle | import("react-native").Falsy | import("react-native").RegisteredStyle<import("react-native").ViewStyle>> | readonly (import("react-native").ViewStyle | import("react-native").Falsy | import("react-native").RegisteredStyle<import("react-native").ViewStyle>)[]> | null | undefined;
theme: ReactNativePaper.Theme;
}> & (({ style, theme, ...rest }: import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View> & {
children: import("react").ReactNode;
style?: false | import("react-native").RegisteredStyle<import("react-native").ViewStyle> | import("react-native").Animated.Value | import("react-native").Animated.AnimatedInterpolation | import("react-native").Animated.WithAnimatedObject<import("react-native").ViewStyle> | import("react-native").Animated.WithAnimatedArray<import("react-native").ViewStyle | import("react-native").Falsy | import("react-native").RegisteredStyle<import("react-native").ViewStyle> | import("react-native").RecursiveArray<import("react-native").ViewStyle | import("react-native").Falsy | import("react-native").RegisteredStyle<import("react-native").ViewStyle>> | readonly (import("react-native").ViewStyle | import("react-native").Falsy | import("react-native").RegisteredStyle<import("react-native").ViewStyle>)[]> | null | undefined;
theme: ReactNativePaper.Theme;
}) => JSX.Element), {}>> & {
icon: import("../Icon").IconSource;
label?: string | undefined;
uppercase?: boolean | undefined;
accessibilityLabel?: string | undefined;
accessibilityState?: import("react-native").AccessibilityState | undefined;
animated?: boolean | undefined;
small?: boolean | undefined;
color?: string | undefined;
disabled?: boolean | undefined;
visible?: boolean | undefined;
loading?: boolean | undefined;
onPress?: (() => void) | undefined;
onLongPress?: (() => void) | undefined;
style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
theme: ReactNativePaper.Theme;
testID?: string | undefined;
}> & (({ small, icon, label, accessibilityLabel, accessibilityState, animated, color: customColor, disabled, onPress, onLongPress, theme, style, visible, uppercase, loading, testID, ...rest }: import("../../types").$RemoveChildren<import("react").ComponentType<Pick<import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View> & {
children: import("react").ReactNode;
style?: false | import("react-native").RegisteredStyle<import("react-native").ViewStyle> | import("react-native").Animated.Value | import("react-native").Animated.AnimatedInterpolation | import("react-native").Animated.WithAnimatedObject<import("react-native").ViewStyle> | import("react-native").Animated.WithAnimatedArray<import("react-native").ViewStyle | import("react-native").Falsy | import("react-native").RegisteredStyle<import("react-native").ViewStyle> | import("react-native").RecursiveArray<import("react-native").ViewStyle | import("react-native").Falsy | import("react-native").RegisteredStyle<import("react-native").ViewStyle>> | readonly (import("react-native").ViewStyle | import("react-native").Falsy | import("react-native").RegisteredStyle<import("react-native").ViewStyle>)[]> | null | undefined;
theme: ReactNativePaper.Theme;
}, keyof import("react-native").ViewProps | keyof import("react").RefAttributes<import("react-native").View>> & {
theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View> & {
children: import("react").ReactNode;
style?: false | import("react-native").RegisteredStyle<import("react-native").ViewStyle> | import("react-native").Animated.Value | import("react-native").Animated.AnimatedInterpolation | import("react-native").Animated.WithAnimatedObject<import("react-native").ViewStyle> | import("react-native").Animated.WithAnimatedArray<import("react-native").ViewStyle | import("react-native").Falsy | import("react-native").RegisteredStyle<import("react-native").ViewStyle> | import("react-native").RecursiveArray<import("react-native").ViewStyle | import("react-native").Falsy | import("react-native").RegisteredStyle<import("react-native").ViewStyle>> | readonly (import("react-native").ViewStyle | import("react-native").Falsy | import("react-native").RegisteredStyle<import("react-native").ViewStyle>)[]> | null | undefined;
theme: ReactNativePaper.Theme;
}> & (({ style, theme, ...rest }: import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View> & {
children: import("react").ReactNode;
style?: false | import("react-native").RegisteredStyle<import("react-native").ViewStyle> | import("react-native").Animated.Value | import("react-native").Animated.AnimatedInterpolation | import("react-native").Animated.WithAnimatedObject<import("react-native").ViewStyle> | import("react-native").Animated.WithAnimatedArray<import("react-native").ViewStyle | import("react-native").Falsy | import("react-native").RegisteredStyle<import("react-native").ViewStyle> | import("react-native").RecursiveArray<import("react-native").ViewStyle | import("react-native").Falsy | import("react-native").RegisteredStyle<import("react-native").ViewStyle>> | readonly (import("react-native").ViewStyle | import("react-native").Falsy | import("react-native").RegisteredStyle<import("react-native").ViewStyle>)[]> | null | undefined;
theme: ReactNativePaper.Theme;
}) => JSX.Element), {}>> & {
icon: import("../Icon").IconSource;
label?: string | undefined;
uppercase?: boolean | undefined;
accessibilityLabel?: string | undefined;
accessibilityState?: import("react-native").AccessibilityState | undefined;
animated?: boolean | undefined;
small?: boolean | undefined;
color?: string | undefined;
disabled?: boolean | undefined;
visible?: boolean | undefined;
loading?: boolean | undefined;
onPress?: (() => void) | undefined;
onLongPress?: (() => void) | undefined;
style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
theme: ReactNativePaper.Theme;
testID?: string | undefined;
}) => JSX.Element), {}>) & {
Group: import("react").ComponentType<Pick<{
actions: {
icon: import("../Icon").IconSource;
label?: string | undefined;
color?: string | undefined;
labelTextColor?: string | undefined;
accessibilityLabel?: string | undefined;
style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
labelStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
small?: boolean | undefined;
onPress: () => void;
testID?: string | undefined;
}[];
icon: import("../Icon").IconSource;
accessibilityLabel?: string | undefined;
color?: string | undefined;
backdropColor?: string | undefined;
onPress?: (() => void) | undefined;
open: boolean;
onStateChange: (state: {
open: boolean;
}) => void;
visible: boolean;
style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
fabStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
theme: ReactNativePaper.Theme;
testID?: string | undefined;
}, "style" | "color" | "onPress" | "testID" | "accessibilityLabel" | "icon" | "visible" | "actions" | "open" | "fabStyle" | "onStateChange" | "backdropColor"> & {
theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<import("react").ComponentType<{
actions: {
icon: import("../Icon").IconSource;
label?: string | undefined;
color?: string | undefined;
labelTextColor?: string | undefined;
accessibilityLabel?: string | undefined;
style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
labelStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
small?: boolean | undefined;
onPress: () => void;
testID?: string | undefined;
}[];
icon: import("../Icon").IconSource;
accessibilityLabel?: string | undefined;
color?: string | undefined;
backdropColor?: string | undefined;
onPress?: (() => void) | undefined;
open: boolean;
onStateChange: (state: {
open: boolean;
}) => void;
visible: boolean;
style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
fabStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
theme: ReactNativePaper.Theme;
testID?: string | undefined;
}> & {
({ actions, icon, open, onPress, accessibilityLabel, theme, style, fabStyle, visible, testID, onStateChange, color: colorProp, backdropColor, }: {
actions: {
icon: import("../Icon").IconSource;
label?: string | undefined;
color?: string | undefined;
labelTextColor?: string | undefined;
accessibilityLabel?: string | undefined;
style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
labelStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
small?: boolean | undefined;
onPress: () => void;
testID?: string | undefined;
}[];
icon: import("../Icon").IconSource;
accessibilityLabel?: string | undefined;
color?: string | undefined;
backdropColor?: string | undefined;
onPress?: (() => void) | undefined;
open: boolean;
onStateChange: (state: {
open: boolean;
}) => void;
visible: boolean;
style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
fabStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
theme: ReactNativePaper.Theme;
testID?: string | undefined;
}): JSX.Element;
displayName: string;
}, {}>;
};
export default FAB;