Resolves #12
This is probably easiest to look at via sets of commit(s)
The first commit creates a utility file to access categories.json and to get a set of categories with a matching parentID.
The next two commits Install react-native-vector-icons and update the ios side of things. Most likely there will be sister PR in order to update Android to use Icons. The github for the project is very useful here. I have only added MaterialIcon and FontAwesome at the moment
The last two commits Create the Categories component and then pull it in to HomeScreen, while simplify App a little bit
Here is a screenshot of what the change looks like. No styling in terms of colors or interaction is present as I believe we should focus on the core work now and improve (first interaction, then colors/style) later. Additionally, you'll see the laster category has "(no show)" in the name. This is to test later when we add checks to ensure that categories with no subcontent are hidden:
Resolves #12 This is probably easiest to look at via sets of commit(s)
The first commit creates a utility file to access
categories.json
and to get a set of categories with a matching parentID.The next two commits Install
react-native-vector-icons
and update the ios side of things. Most likely there will be sister PR in order to update Android to use Icons. The github for the project is very useful here. I have only added MaterialIcon and FontAwesome at the momentThe last two commits Create the
Categories
component and then pull it in toHomeScreen
, while simplifyApp
a little bitHere is a screenshot of what the change looks like. No styling in terms of colors or interaction is present as I believe we should focus on the core work now and improve (first interaction, then colors/style) later. Additionally, you'll see the laster category has "(no show)" in the name. This is to test later when we add checks to ensure that categories with no subcontent are hidden: