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

Flatlist on scroll the app cloese suddenly #24446

Closed
Sadhr opened this issue Apr 14, 2019 · 7 comments
Closed

Flatlist on scroll the app cloese suddenly #24446

Sadhr opened this issue Apr 14, 2019 · 7 comments
Labels
Bug Component: FlatList Platform: Linux Building on Linux. Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@Sadhr
Copy link

Sadhr commented Apr 14, 2019

🐛 Bug Report

I'm fetching data from an external API and for the Home, I used Flatlist and everything work well, but for my detail screen I used a horizontal Flatlist inside a ScrollView but when I tried to scroll in the Flatlist the app closed without any error or log.

Code Example

this is my list component:
const renderItem = ({ item }) => { console.log(item); return <ProfileCard {...item} />; }; return ( <FlatList renderItem={renderItem} data={props.cast} keyExtractor={keyExtractor} horizontal showsHorizontalScrollIndicator={false} removeClippedSubviews /> );

and the details screen look like that:
<ScrollView showsVerticalScrollIndicator={false}> <Text>Cast</Text> <ProfileList cast={this._castLimit(cast)} /> </ScrollView>

Environment

React Native Environment Info:
System:
OS: Linux 4.15 Ubuntu 18.04.2 LTS (Bionic Beaver)
CPU: (4) x64 Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz
Memory: 759.29 MB / 7.68 GB
Shell: 4.4.19
Binaries:
Node: 10.15.3
Yarn: 1.12.3
npm: 6.9.0
npmPackages:
react: 16.5.0 => 16.5.0
react-native: https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz => 0.57.1
npmGlobalPackages:
create-react-native-app: 2.0.2
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7

@react-native-bot
Copy link
Collaborator

Can you run react-native info and edit your issue to include these results under the Environment section?

If you believe this information is irrelevant to the reported issue, you may write `[skip envinfo]` alongside an explanation in your Environment: section.

@saxenanickk
Copy link
Contributor

@Sadhr Try to see some logs in Logcat.

@Sadhr
Copy link
Author

Sadhr commented Apr 17, 2019

@saxenanickk Nothing showing in Logcat

@troZee
Copy link
Contributor

troZee commented May 30, 2019

Can you provide example repo ?

@krizzu
Copy link

krizzu commented May 30, 2019

@Sadhr What filters do you use for Logcat?

Your code is incomplete, but in your Detail screen snippet you're firing this._castLimit immediately when passing it to cast prop - maybe that's the issue?

@stale
Copy link

stale bot commented Aug 28, 2019

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Aug 28, 2019
@stale
Copy link

stale bot commented Sep 4, 2019

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed Sep 4, 2019
@facebook facebook locked as resolved and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Component: FlatList Platform: Linux Building on Linux. Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

6 participants