monterosalondon / react-native-parallax-scroll

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

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

Closed teod closed 6 years ago

teod commented 6 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 6 years ago

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