mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-28 04:55:12 +00:00
refactor shape elements add responder system.
refactor shape elements add responder system. Just iOS.
This commit is contained in:
+7
-1
@@ -67,6 +67,12 @@ class Svg extends Component{
|
||||
|
||||
return (
|
||||
<NativeSvgView
|
||||
{...props}
|
||||
opacity={null}
|
||||
width={null}
|
||||
height={null}
|
||||
viewbox={null}
|
||||
preserveAspectRatio={null}
|
||||
ref={ele => this.root = ele}
|
||||
style={[
|
||||
props.style,
|
||||
@@ -86,6 +92,6 @@ class Svg extends Component{
|
||||
}
|
||||
}
|
||||
|
||||
const NativeSvgView = requireNativeComponent('RNSVGSvgView', Svg);
|
||||
const NativeSvgView = requireNativeComponent('RNSVGSvgView', null);
|
||||
|
||||
export default Svg;
|
||||
|
||||
Reference in New Issue
Block a user