Skip to content

Setting a foreground blocks taps when scrolled #23

Closed
@EyMaddis

Description

@EyMaddis

Issue details

When setting a foreground an empty view is created that acts as a placeholder and wrapper.
This has position: 'absolute' and the height according to the parallaxHeight property.
Because of this, the empty view is always in front of everything that renders as the content of the ScrollView.

          parallaxHeight={300}

          renderParallaxForeground={({ animatedValue, height }) => (
            <View style={{backgroundColor: 'red', width: '100%', height, opacity: 0.5}} />
          )}

image

slightly scrolled and selected with the React-Native inspector:
image

Everything below the box is not touchable, i.e. the "Alle Anzeigen" button

  • react-native 0.55.0
  • react-native-parallax-scroll 1.7.0

Affected platforms

  • Both

PR incoming

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions