fix Text cannot handle touch events bug

This commit is contained in:
Horcrux
2016-08-06 23:17:38 +08:00
parent 43de62650b
commit 6ebd928ab4
6 changed files with 9 additions and 15 deletions

View File

@@ -85,12 +85,12 @@ class GroupExample extends Component {
width="120"
viewBox="0 0 240 240"
>
<G>
<G scale="1.4" onPress={() => alert('Pressed')}>
<G onPress={() => alert('Pressed on G')}>
<G scale="1.4">
<G>
<Circle cx="80" cy="80" r="30" fill="green" x="20" scale="1.2"/>
<Text fontWeight="bold" fontSize="40" x="100" y="100" scale="2" onPress={() => alert('Pressed on Text')}>H</Text>
<Rect x="20" y="20" width="40" height="40" fill="yellow" />
<Text fontWeight="bold" fontSize="40" x="100" y="100" scale="2">H</Text>
</G>
</G>
</G>