-
Notifications
You must be signed in to change notification settings - Fork 282
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
Hey, I'm having some troubles when i need to change styles for an item inside on flashlist #1000
Comments
Are you using |
I'm also having the same problem, my onPress isn't working. |
its a bit late as response but i solved this way:
|
|
Just to be clear on this issue - the (not-well-documented) solution is that you have to use the E.g.:
|
I recently replaced a FlatList with FlashList, which contains a couple of buttons. One of them used to change its background color and text color upon being pressed. However, since I've switched to using FlashList, this functionality is no longer working.
`<>
<FlashList
estimatedItemSize={100}
showsVerticalScrollIndicator={false}
data={selectedCluster}
renderItem={({ item }) => {
const isDirectionsVisible = showDirectionsMap[item._id] || false;
return (
<View style={{ backgroundColor: '#fff', paddingHorizontal: width * 0.07, paddingVertical: height * 0.01, gap: height * 0.01 }}>
<MapContactCard
onContactCardPress={() => centerMapOnMarker(item)}
selectedMarker={item}
auth={auth}
/>
The text was updated successfully, but these errors were encountered: