New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for typescript #105
Comments
declare module 'react-native-spinkit' {
import React from 'react';
export type SpinnerType =
| 'CircleFlip'
| 'Bounce'
| 'Wave'
| 'WanderingCubes'
| 'Pulse'
| 'ChasingDots'
| 'ThreeBounce'
| 'Circle'
| '9CubeGrid'
| 'WordPress'
| 'FadingCircle'
| 'FadingCircleAlt'
| 'Arc'
| 'ArcAlt'
| 'Plane';
export type SpinnerProps = {
isVisible: boolean;
color?: string;
size?: number;
type?: SpinnerType;
};
const Spinner: React.ComponentType<SpinnerProps>;
export default Spinner;
} While waiting for typescript support, you can do the following:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is it possible to have typescript definitions for this library?
The text was updated successfully, but these errors were encountered: