From 67b8b0c96fb2e5c4dacd116eba68d832175b7ca3 Mon Sep 17 00:00:00 2001 From: Horcrux Date: Thu, 9 Jun 2016 23:30:33 +0800 Subject: [PATCH] add touchable for circle --- elements/Circle.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/elements/Circle.js b/elements/Circle.js index be42bebd..ce3f1cea 100644 --- a/elements/Circle.js +++ b/elements/Circle.js @@ -1,12 +1,16 @@ -import React, {PropTypes, Component} from 'react'; -import extractProps from '../lib/extract/extractProps'; +import React, {PropTypes} from 'react'; import createNativeComponent from '../lib/createNativeComponent'; +import Shape from './Shape'; import mergeContext from '../lib/mergeContext'; -import {circleProps, pathProps, fillProps, strokeProps, numberProp} from '../lib/props'; +import {circleProps, pathProps, fillProps, strokeProps, numberProp, touchableProps, responderProps} from '../lib/props'; +class Circle extends Shape { static displayName = 'Circle'; static propTypes = { ...pathProps, + ...circleProps, + ...touchableProps, + ...responderProps }; static contextTypes = { @@ -20,6 +24,7 @@ import {circleProps, pathProps, fillProps, strokeProps, numberProp} from '../lib render() { let props = mergeContext(this.props, this.context); return