This PR adds a new useEffect method on the SRP that checks to see if a category was selected. If so, it triggers the handleCategoryChange() method which updates the filtered list of businesses.
Callouts
Still trying to work out how to update the actual dropdown value to be the selected category. The react-native-picker-select library isn't playing nice. 😢
High-level overview
This PR adds a new
useEffect
method on the SRP that checks to see if a category was selected. If so, it triggers thehandleCategoryChange()
method which updates the filtered list of businesses.Callouts
react-native-picker-select
library isn't playing nice. 😢Preview
Resources