Skip to content
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.

How to make it work when starting touch on the child views? #11

Open
eljago opened this issue Dec 23, 2015 · 2 comments
Open

How to make it work when starting touch on the child views? #11

eljago opened this issue Dec 23, 2015 · 2 comments

Comments

@eljago
Copy link

eljago commented Dec 23, 2015

I noticed that when starting the touch on a child view, the gestures doesn't work.
In the example if I touch one of the Text views and try to drag, the GestureView won't move.

How could I make it ignore the child views?

@futurepaul
Copy link

I was having this problem as well and found this helpful answer on stackoverflow.

Basically you just say pointerEvents="none" on the thingy you want to ignore.

<GestureView
  ...(gestureview props)...
>
  <View pointerEvents="none">
    <Text>Heyyy</Text>
    <Text>Heyyy</Text>
  </View>
</GestureView>

@sscaff1
Copy link

sscaff1 commented Mar 16, 2016

How do I wrap the Gesture view around an image?

<GestureView ...gestureProps...>
  <Image source={{uri: uri}} />
</GestureView>

The above doesn't seem to work...Any ideas?

I created a pull request for the above. #13

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants