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

Events are not passed through to the foreground view if STICKY_HEADER_HEIGHT overlaps #25

Open
PublicParadise opened this issue Mar 21, 2016 · 1 comment · May be fixed by #57
Open

Comments

@PublicParadise
Copy link

Steps

In ListView Talk.js wrap foreground's Image in a TouchableOpacity like this:

          renderForeground={() => (
            <View key="parallax-header" style={ styles.parallaxHeader }>
              <TouchableOpacity onPress={() => { AlertIOS.alert('Foreground Clicked!') }}>
                <Image style={ styles.avatar } source={{
                    uri: 'https://pbs.twimg.com/profile_images/2694242404/5b0619220a92d391534b0cd89bf5adc1_400x400.jpeg',
                    width: AVATAR_SIZE,
                    height: AVATAR_SIZE
                }}/>
              </TouchableOpacity>  
...

Build and run the modified code, then click on the foreground image, that is, the head in the bubble.
The result is: "Foreground Clicked"

screen shot 2016-03-20 at 9 26 04 pm

So far, so good.
Now increase STICKY_HEADER_HEIGHT from 70 to 270:

const STICKY_HEADER_HEIGHT = 270;

(By increasing STICKY_HEADER_HEIGHT from 70 to 270 the sticky header are will overlap with the foreground are that renders the TouchableOpacity area.)

Build and run the modified code, then click on the foreground image, that is, the head in the bubble - as before.

EXPECTED

Alert popping up saying "Foreground Clicked!"

ACTUAL

No alert.

@PublicParadise
Copy link
Author

Unhandled JS Exception: Converting circular structure to JSON

After increasing STICKY_HEADER_HEIGHT from 70 to 270...
If you activate the Inspector and click foreground image, that is, the head in the bubble you'll get this error:

screen shot 2016-03-20 at 9 40 24 pm

This issue might be related to #23 .

naxel pushed a commit to naxel/react-native-parallax-scroll-view that referenced this issue Oct 14, 2016
tavriaforever added a commit to tavriaforever/react-native-parallax-scroll-view that referenced this issue Jun 20, 2018
Jedidiah added a commit to Jedidiah/react-native-parallax-scroll-view that referenced this issue Sep 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant