add touch responder system on android

This commit is contained in:
Horcrux
2016-05-18 17:33:54 +08:00
parent 75e03f87e9
commit ce74efc58d
21 changed files with 629 additions and 223 deletions
+8 -1
View File
@@ -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