mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-02 06:35:04 +00:00
add touch responder system on android
This commit is contained in:
+8
-1
@@ -1,10 +1,16 @@
|
||||
import React, {Children, Component, cloneElement, PropTypes} from 'react';
|
||||
import {View, requireNativeComponent} from 'react-native';
|
||||
import {View, requireNativeComponent, StyleSheet} from 'react-native';
|
||||
import ViewBox from './ViewBox';
|
||||
|
||||
// Svg - Root node of all Svg elements
|
||||
let id = 0;
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
svg: {
|
||||
backgroundColor: 'transparent'
|
||||
}
|
||||
});
|
||||
|
||||
class Svg extends Component{
|
||||
static displayName = 'Svg';
|
||||
static propTypes = {
|
||||
@@ -75,6 +81,7 @@ class Svg extends Component{
|
||||
preserveAspectRatio={null}
|
||||
ref={ele => this.root = ele}
|
||||
style={[
|
||||
styles.svg,
|
||||
props.style,
|
||||
!isNaN(opacity) && {
|
||||
opacity
|
||||
|
||||
Reference in New Issue
Block a user