-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Comments
Can you run If you believe this information is irrelevant to the reported issue, you may write `[skip envinfo]` alongside an explanation in your Environment: section.
|
@Sadhr Try to see some logs in Logcat. |
@saxenanickk Nothing showing in Logcat |
Can you provide example repo ? |
@Sadhr What filters do you use for Your code is incomplete, but in your Detail screen snippet you're firing |
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. |
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. |
🐛 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
The text was updated successfully, but these errors were encountered: