Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onPress is not getting called Inner wrapper #21

Open
DevJett opened this issue Jun 4, 2019 · 1 comment
Open

onPress is not getting called Inner wrapper #21

DevJett opened this issue Jun 4, 2019 · 1 comment

Comments

@DevJett
Copy link

DevJett commented Jun 4, 2019

onPress is not getting called Inner wrapper

example

            <SlideButton
                onSlideSuccess={this.stopRecording}
                slideDirection={SlideDirection.RIGHT}
                width={SCREEN_WIDTH}
                height={50}>
                    <Button title={'Click me'} onPress={()=>console.warn('clicked')} /> // not working
            </SlideButton>
@LapEv
Copy link

LapEv commented Mar 22, 2022

In SlideButton.js:
onMoveShouldSetPanResponder: (evt, gestureState) => {
const { dx, dy } = gestureState
return (dx > 2 || dx < -2 || dy > 2 || dy < -2) },
// onMoveShouldSetPanResponderCapture: (evt, gestureState) => true,
onMoveShouldSetPanResponderCapture: (evt, gestureState) => {
const { dx, dy } = gestureState
return (dx > 2 || dx < -2 || dy > 2 || dy < -2) },

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

No branches or pull requests

2 participants