Replies: 1 comment 2 replies
-
I got this! and then for the button onPress: |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I will start by informing that I'm new to this stuff..
I added a simple filter to the "data",
data={(filterBy == "All" ? users : users.filter(x => x.Alarms.Type == filterBy))}
and a couple of buttons that set the filterBy,
<Button title="All" onPress={() => {setFilter("All"), scrollTo({index: 0})}} /> <Button title="Alarm" onPress={() => {setFilter("Alarm"), scrollTo({index: 0})}} /> <Button title="Accept" onPress={() => {setFilter("Accept"), scrollTo({index:0})}} />
I would also like the carousel to jump to the beginning after changing the dataset, but I cannot figure it out.. :(
Beta Was this translation helpful? Give feedback.
All reactions