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, {Component, PropTypes} from 'react';
|
||||
import Defs from './Defs';
|
||||
import _ from 'lodash';
|
||||
import createNativeComponent from '../lib/createNativeComponent';
|
||||
import createReactNativeComponentClass from 'react/lib/createReactNativeComponentClass';
|
||||
import {numberProp, contextProps} from '../lib/props';
|
||||
|
||||
import {GroupAttributes} from '../lib/attributes';
|
||||
import extractProps from '../lib/extract/extractProps';
|
||||
|
||||
class G extends Component{
|
||||
@@ -56,7 +56,10 @@ class G extends Component{
|
||||
}
|
||||
}
|
||||
|
||||
const RNSVGGroup = createNativeComponent('RNSVGGroup');
|
||||
const RNSVGGroup = createReactNativeComponentClass({
|
||||
validAttributes: GroupAttributes,
|
||||
uiViewClassName: 'RNSVGGroup'
|
||||
});
|
||||
|
||||
export default G;
|
||||
export {
|
||||
|
||||
Reference in New Issue
Block a user