Skip to content

Pull to refresh hidden behind renderParallaxForeground component #28

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

Open
ashokkumar88 opened this issue Jun 29, 2018 · 4 comments
Open

Comments

@ashokkumar88
Copy link

ashokkumar88 commented Jun 29, 2018

Issue details

I am using FlatList in renderScrollComponent and inside renderParallaxForeground i am using a Swiper component. When I am using the Pull to Refresh the loading icon is going behind the renderParallaxForeground component.Seems some zIndex issue.

Steps to reproduce

Use a normal View with height 300 and some background color inside renderParallaxForeground and renderScrollComponent={FlatList}. Use the Pull to Refresh.

Please specify which versions of the RN and ParallaxScroll

  • react-native 0.51
  • react-native-parallax-scroll 1.5.4

Affected platforms

  • Android
  • iOS (not checked)

Screenshots / Screencast / Code Snippets (Optional)

<ParallaxScroll
      scrollableComponent={FlatList}
      renderHeader={({ animatedValue }) => <Header/>
    } 
      headerHeight={MARGIN_TOP}
      isHeaderFixed={false}
      fadeOutParallaxBackground={false}
      fadeOutParallaxForeground={true}
      parallaxHeight={300}
     renderParallaxForeground={({ animatedValue }) =>
  <Swiper/>
  }

//     } 
      parallaxBackgroundScrollSpeed={5}
      parallaxForegroundScrollSpeed={1.3}      
      data={this.props.list}
      keyExtractor={this._keyExtractor}
      renderItem={this._renderItem}
      initialNumToRender={6}
      onRefresh={this.handleRefresh}
      refreshing={this.state.refreshing}
    />
@Lizhooh
Copy link

Lizhooh commented Jul 17, 2018

+1, This is indeed a problem.

@z4o4z
Copy link
Contributor

z4o4z commented Aug 3, 2018

Hi @ashokkumar88, looks like this issue can't be fixed, it is connected with RN limitations

@geminiyellow
Copy link

something working?

@wisungyo
Copy link

wisungyo commented Jul 3, 2022

i also face this issue. loading indicator shows behind my component I set to be a header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants