import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; import type { Float, Int32, WithDefault, } from 'react-native/Libraries/Types/CodegenTypes'; import type { ViewProps } from './utils'; import type { UnsafeMixed } from './codegenUtils'; import { NumberProp } from '../lib/extract/types'; interface SvgNodeCommonProps { name?: string; opacity?: WithDefault; matrix?: ReadonlyArray; mask?: string; markerStart?: string; markerMid?: string; markerEnd?: string; clipPath?: string; clipRule?: WithDefault; responsible?: boolean; display?: string; pointerEvents?: string; } interface NativeProps extends ViewProps, SvgNodeCommonProps { x1?: UnsafeMixed; y1?: UnsafeMixed; x2?: UnsafeMixed; y2?: UnsafeMixed; gradient?: ReadonlyArray; gradientUnits?: Int32; gradientTransform?: ReadonlyArray | null; } export default codegenNativeComponent('RNSVGLinearGradient', { interfaceOnly: true, });