How to create a new ____ ?
List of elements in the app which might be needed to be added more of later on, write here only if there are few steps, else create a new page for it.
Auth method
- create a new script in
src\core\authand create an object withAuthMethodtype - inside
AuthMethodsinsrc\core\auth\utils.tsxadd a key (should be the same supbase expectsproviderprovider to be) for your auth method, and its value should be theAuthMethodtype object you created. - create a button in
src\screens\login\index.tsxalong side the other auth buttons we have right now, callsignInfunction with your key in onPress
Tab
- create a new key/value in TabsInfo, you will need an icon, a screen or navigator component to show, and a label for tab
- add the screen component you want to show in TabType in
src\screensor Navigator component insrc\navigation
New Icons
- duplicate a file in
src\ui\iconsand rename the file and component accordingly - go to font awesome, search and select the icon you want to use
- go into SVG tab and copy the code snipit there
- replace the
d,height,width,viewBoxproperties from the code snipit into the component you just created - change the color property as prefered
- export the component in
src\ui\icons\index.tsx - then use the component as you like, the new icon should now be displayed properly