keske / react-native-easy-gestures

React Native Gestures. Support: Drag, Scale and Rotate a Component.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

inner components onPress is not working well.

ManigandanRaamanathan opened this issue · comments

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.

example code:-

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

@keske created pull request for review.

Having same issue on Android. iOS seems to work