Skip to content

Touch Events not propagating through to Page #87

Open
@Cavallando

Description

@Cavallando

Great work on this library, has been very easy to implement so far!

For some context, I am trying to add my login views to my onboarding flow which involves an email/password input. However, when adding the view that contains the TextInputs to either the image or subtitle for a given page, the TextInput is not able to receive focus to fill in the input.

I tried to pass scrollEnabled: false to the flatlistProps prop in hopes that the pointer events would pass through to my Views but did not help unfortunately. Looking at the code for the library it doesn't seem like anything would prevent touch events explicitly from propagating through to a given page, title, subtitle, image.

To try out a work around I tried to wrap the TextInput in a TouchableNativeFeedback to programmatically trigger focus, however touch events would not trigger the onPress for that component.

I have also tried passing pointerEvents="none" in a number of places which also did not help.

Currently, my pages data is structured like:

backgroundColor: '#000000',
image: (
 // Separate component with it's own state,
 // showing in context
  <View>
    <TextInput {...props} />
  </View
),
title: <Text>Title Text</Text>,

There very well could be something I'm missing, any help is much appreciated!

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions