husam287 / masarefy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

husam287-expo-template

EXPO SDK 46 Template

To use this template, make sure to have the Expo CLI installed and run:

expo init [name] --template @husam287/expo-template

⚑ Stack and Dependencies

πŸ”§ Usage

Be sure to have the Expo CLI installed.

expo init [name] --template @husam287/expo-template

πŸ’» Development Practices

  1. Responsive: Make sure to utilize responsive color and screen sizes for components in constants folder.
  2. Lightweight Files: Keep files under ~500 lines of code. If you much longer than this you should probably be creating a different component to import in.
  3. Compilation and Formatting: Strongly type when possible to cut down on runtime errors while also linting code often to maintain strong formatting.
  4. Naming Conventions:
    Directories: all lower case with - for spaces (ex. home-components)
    Files/Components: Capital first letter and CamelCase (ex. <FormInput />)
    Variables: camelCase (ex. const isLoading) Constant value: all upper case _ for spaces (ex. GLOBAL_STYLES)

πŸ“‚ Organization

src/components: useful re-usable component library.
src/constants: app constants, such as theme, that remain consistent throughout the app.
src/reducers: redux features, organized using the slice pattern.
src/hooks: useful hooks that can be re-used throughout the app.
src/routes: react-navigation navigators, including stack and tab navigators.
src/screens: the main screens of the app.
src/api: apis using axios hooks; organized as endpoints, axios configuration src/assets: all assets

About


Languages

Language:JavaScript 100.0%