refactor all components and isolated from ART dependency

This commit is contained in:
Horcrux
2016-04-20 00:52:59 +08:00
parent c8a04c3d28
commit d700ca5493
81 changed files with 2993 additions and 1437 deletions
+3 -6
View File
@@ -1,13 +1,10 @@
import React, {
Component,
PropTypes,
ART,
Children
} from 'react-native';
let {
Group
} = ART;
import {set, remove} from '../lib/fillFilter';
import {NativeGroup} from './G';
import {set, remove} from '../lib/extractFill';
import percentFactory from '../lib/percentFactory';
import percentToFloat from '../lib/percentToFloat';
import Stop from './Stop';
@@ -51,7 +48,7 @@ class RadialGradient extends Component{
console.warn(`'RadialGradient' can only receive 'Stop' elements as children`);
}
});
return <Group />;
return <NativeGroup />;
}
}