30 lines
624 B
TypeScript
30 lines
624 B
TypeScript
import { StyleProp, ViewStyle } from "react-native";
|
|
import { Transform, IconProp } from "@fortawesome/fontawesome-svg-core";
|
|
|
|
export type FontAwesomeIconStyle = StyleProp<ViewStyle> & {
|
|
color?: string;
|
|
};
|
|
|
|
export interface Props {
|
|
icon: IconProp;
|
|
/**
|
|
* @deprecated
|
|
*/
|
|
height?: number;
|
|
/**
|
|
* @deprecated
|
|
*/
|
|
width?: number;
|
|
size?: number;
|
|
color?: string;
|
|
secondaryColor?: string;
|
|
secondaryOpacity?: number;
|
|
mask?: IconProp;
|
|
maskId?: string;
|
|
transform?: string | Transform;
|
|
style?: FontAwesomeIconStyle;
|
|
testID?: string;
|
|
}
|
|
|
|
export function FontAwesomeIcon(props: Props): JSX.Element;
|