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

To run stickySectionHeadersEnabled={true} wrong. #13889

Closed
452MJ opened this issue May 10, 2017 · 7 comments
Closed

To run stickySectionHeadersEnabled={true} wrong. #13889

452MJ opened this issue May 10, 2017 · 7 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@452MJ
Copy link

452MJ commented May 10, 2017

Description

I want to use SectionList to show some data.

Reproduction Steps and Sample Code

List all the steps required to reproduce the issue you're reporting. These steps should be clear and concise.

The code' repo: https://github.com/452MJ/Mtime-React-Native/blob/master/app/src/screen/CreditListScreen.js

here's the json url: https://api-m.mtime.cn/Movie/MovieCreditsWithTypes.api?movieId=216008

1
2

Solution

To run stickySectionHeadersEnabled={true} well~

Additional Information

  • React Native version: 0.44.0
  • Platform:Android
  • Development Operating System: Windows
  • Dev tools: IntelliJ IDEA 2017.1.2
@kelset
Copy link
Contributor

kelset commented May 19, 2017

Happening to me too on Android. Any idea for a workaround?

@452MJ
Copy link
Author

452MJ commented May 19, 2017

Not yet.

@janicduplessis
Copy link
Contributor

I have some fixes for this, you can try to add removeClippedSubviews={false} as a workaround I think in the meantime

@kyo504
Copy link
Contributor

kyo504 commented Jul 28, 2017

@janicduplessis Any update on this? Even if I set removeClippedSubviews to false, it happens when scrolling.

  • React-Native : 0.44.0
  • Platform : Android

@452MJ
Copy link
Author

452MJ commented Jul 28, 2017

@kyo504 it can run well at the RN version 0.46.1, just set stickySectionHeadersEnabled={true} without removeClippedSubviews={true or false}. Try it.

@kyo504
Copy link
Contributor

kyo504 commented Jul 28, 2017

@452MJ Thanks for your comment. I'll check it :)

@kyo504
Copy link
Contributor

kyo504 commented Jul 28, 2017

@452MJ Great! It works fine now :)

@452MJ 452MJ closed this as completed Jul 28, 2017
@facebook facebook locked as resolved and limited conversation to collaborators Jul 28, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

5 participants