mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-04 23:54:53 +00:00
use createReactNativeComponentClass inside from react
due to the peerDependency of react-native is >=0.29.0. so there is no need to consider compatibility with react-native@0.27.0 and below.
This commit is contained in:
+6
-3
@@ -1,9 +1,9 @@
|
||||
import React, {PropTypes} from 'react';
|
||||
import createNativeComponent from '../lib/createNativeComponent';
|
||||
import createReactNativeComponentClass from 'react/lib/createReactNativeComponentClass';
|
||||
import mergeContext from '../lib/mergeContext';
|
||||
import Shape from './Shape';
|
||||
import {ellipseProps, pathProps, fillProps, strokeProps, numberProp} from '../lib/props';
|
||||
|
||||
import {EllipseAttributes} from '../lib/attributes';
|
||||
|
||||
class Ellipse extends Shape{
|
||||
static displayName = 'Ellipse';
|
||||
@@ -32,6 +32,9 @@ class Ellipse extends Shape{
|
||||
}
|
||||
}
|
||||
|
||||
const RNSVGEllipse = createNativeComponent('RNSVGEllipse');
|
||||
const RNSVGEllipse = createReactNativeComponentClass({
|
||||
validAttributes: EllipseAttributes,
|
||||
uiViewClassName: 'RNSVGEllipse'
|
||||
});
|
||||
|
||||
export default Ellipse;
|
||||
|
||||
Reference in New Issue
Block a user