keske / react-native-easy-gestures

React Native Gestures. Support: Drag, Scale and Rotate a Component.
MIT License
173 stars 61 forks source link

inner components onPress is not working well. #60

Open ManigandanRaamanathan opened 4 years ago

ManigandanRaamanathan commented 4 years ago

inner components onPress is not working well. The touchable onPress props of components inside the gestures are not picked up more often. As whenever we touch the content, it starts to move the component around. Therefore, the onPress is only working when the touch we made did not cause movement over the component.

ManigandanRaamanathan commented 4 years ago

example code:-

<Gestures
                rotatable={true}
                scalable={{
                    min: 1,
                    max: 7,
                }}
                draggable={true}
            >
                <View>
                    <Text
                        onPress={()=>{
                            this.onPressText()
                        }}
                    >
                        {this.state.text}
                    </Text>
                </View>
            </Gestures>
ManigandanRaamanathan commented 4 years ago

@keske created pull request for review.

adriandiaz commented 1 year ago

Having same issue on Android. iOS seems to work