import React from 'react'; import type { StyleProp, TextStyle, ViewStyle } from 'react-native'; import { Animated } from 'react-native'; import type { IconName } from '../Icon'; export type FABHandles = { show: (animated?: boolean, callback?: Animated.EndCallback) => void; collapse: (animated?: boolean, callback?: Animated.EndCallback) => void; hide: (animated?: boolean, callback?: Animated.EndCallback) => void; }; export interface FABProps { /** * Name of the Icon. */ icon: IconName; /** * title of the component. */ title?: string; /** * This function is called on pressing the button. */ onPress?: () => void; /** * Specify if the button is animated. */ animated?: boolean; /** * Specify if the button is in active state. It only works if animated is true. */ active?: boolean; /** * Additional style. */ style?: StyleProp; /** * Testing id of the component. */ testID?: string; } declare const FABWithTitleStyle: React.ForwardRefExoticComponent; } & React.RefAttributes>; declare const FAB: React.ForwardRefExoticComponent>; export { FABWithTitleStyle as FABInternal }; export default FAB;