react-native-reanimated
Version:
More powerful alternative to Animated library for React Native.
62 lines (61 loc) • 1.47 kB
JavaScript
;
import React from 'react';
const createComponent = function (name) {
return class extends React.Component {
static displayName = name;
render() {
return /*#__PURE__*/React.createElement(name, this.props, this.props.children);
}
setNativeProps(props) {
this._props = {
...this._props,
...props
};
}
};
};
const Svg = createComponent('Svg');
const Path = createComponent('Path');
const Circle = createComponent('Circle');
const Rect = createComponent('Rect');
const G = createComponent('G');
const Line = createComponent('Line');
const Text = createComponent('Text');
const TSpan = createComponent('TSpan');
const TextPath = createComponent('TextPath');
const Defs = createComponent('Defs');
const Stop = createComponent('Stop');
const LinearGradient = createComponent('LinearGradient');
const RadialGradient = createComponent('RadialGradient');
const ClipPath = createComponent('ClipPath');
const Polygon = createComponent('Polygon');
const Polyline = createComponent('Polyline');
const Ellipse = createComponent('Ellipse');
const Use = createComponent('Use');
const Image = createComponent('Image');
const SVG = {
Svg,
Path,
Circle,
Rect,
G,
Line,
Text,
TSpan,
TextPath,
Defs,
Stop,
LinearGradient,
RadialGradient,
ClipPath,
Polygon,
Polyline,
Ellipse,
Use,
Image
};
module.exports = {
__esModule: true,
...SVG
};
//# sourceMappingURL=mock-svg.js.map