diff --git a/src/index.d.ts b/src/index.d.ts new file mode 100644 index 0000000..86a71ce --- /dev/null +++ b/src/index.d.ts @@ -0,0 +1,23 @@ +declare module "react-native-progress-circle" { + import * as React from "react"; + import * as ReactNative from "react-native"; + + export interface PercentageCircleProps { + color?: string; + shadowColor?: string; + bgColor?: string; + radius: number; + borderWidth?: number; + percent: number; + children?: React.ReactNode; + containerStyle?: ReactNative.ViewStyle | Array; + outerCircleStyle?: ReactNative.ViewStyle | Array; + } + + export default class PercentageCircle extends React.Component< + PercentageCircleProps, + any + > { + render(): JSX.Element; + } +}