MCPcopy Create free account
hub / github.com/react-native-linear-gradient/react-native-linear-gradient / convertPoint

Function convertPoint

index.ios.js:10–23  ·  view source on GitHub ↗
(name, point)

Source from the content-addressed store, hash-verified

8import NativeLinearGradient, { type Props } from './common';
9
10const 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
25export default class LinearGradient extends Component<Props> {
26 props: Props;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…