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 componentaccordinglyaccordingly. - go to
fontsvgawesome,repo, search and select the icon you want touseuse. goselectintotheSVGicontabyou want and click on the icon to open it's page.- Click on edit vector, edit the icon as per your liking and copy
the code snipit theresvg. replaceOpenthesvgrd,playgroundheight,andwidth,pasteyourviewBoxpropertiessvg xml here.- Make sure to tick on react native and typescript from the
codeleftsnipitbar. - copy the
componentsvgyou just created changefrom thecolorrightpropertywindowasandpreferedreplace exportit with the existing svg component inyour created file. Do remember to copy all the dependencies of react native svg as well.src\ui\icons\index.tsxthen useModify the component asyouneeded.- Download and install inkscape.