react-native-animated-linear-gradient icon indicating copy to clipboard operation
react-native-animated-linear-gradient copied to clipboard

TypeScript support?

Open gomes042 opened this issue 5 years ago • 1 comments

Any plans to TypeScript support?

gomes042 avatar Oct 27 '20 15:10 gomes042

@3GOMESz Not supported yet. Maybe you can use this in your typings.d.ts(not tested):

declare module 'react-native-animated-linear-gradient' {
  import type { Component } from 'react'

  type Point = {
    x: number
    y: number
  }

  export default class ReactNativeAnimatedLinearGradient extends Component<{
    customColors?: string[]
    speed?: number
    points?: { start: Point; end: Point }
  }> {}
}

heineiuo avatar Oct 28 '20 01:10 heineiuo