monterosalondon / react-native-parallax-scroll

Parallax scroll view for react-native
MIT License
555 stars 63 forks source link

Can't have a TouchableOpacity component inside renderParallaxBackground function #34

Closed teod closed 5 years ago

teod commented 5 years ago

Issue details

Can't have a TouchableOpacity component inside renderParallaxBackground function.

Please specify which versions of the RN and ParallaxScroll

Affected platforms

Screenshots / Screencast / Code Snippets (Optional)

  renderParallaxBackground = ({ height, animatedValue }) => {
    return (
       <TouchableOpacity onPress={() => console.log('doesnt work')}>
          <Text>Text</Text>
       </TouchableOpacity>
    )
  }
z4o4z commented 5 years ago

Hi @teod, this is known issue connected with RN limitations, you can use renderParallaxForeground for this case)