Team-uMigrate / umigrate

Source code for the uMigrate project
13 stars 2 forks source link

feature/PullToRefresh #344

Closed trentstauff closed 3 years ago

trentstauff commented 3 years ago

This ticket implements a pull to refresh feature on each page that has postings. If a new post is created while the user has loaded the page, they can pull down at the top to call the new posts.

Expo Project to Test Code: https://expo.io/@trentstauffuw/umigrate

(TIP: you can test the code on desktop by pressing the "open project in the browser" and then "open project" and then "open project in expo". As you can see, this means that since I am on an iPhone, I can test my code on android. But, for you android users you'll need to share the project link so I can run it locally on my iPhone.)

(No tests as this is not a component, RefreshControl is a property of FlatList)

Closes #315

(GIF not to speed obviously, and the amount of time the pull stays active can be changed. Let me know what you think, try it local with the Expo Project link and see) video0