(name, point)
| 8 | import NativeLinearGradient, { type Props } from './common'; |
| 9 | |
| 10 | const convertPoint = (name, point) => { |
| 11 | if (Array.isArray(point)) { |
| 12 | console.warn( |
| 13 | `LinearGradient '${name}' property should be an object with fields 'x' and 'y', ` + |
| 14 | 'Array type is deprecated.' |
| 15 | ); |
| 16 | |
| 17 | return { |
| 18 | x: point[0], |
| 19 | y: point[1] |
| 20 | }; |
| 21 | } |
| 22 | return point; |
| 23 | }; |
| 24 | |
| 25 | export default class LinearGradient extends Component<Props> { |
| 26 | props: Props; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…