/LifeLine-Driver-App-Expo

NOT WORKING Driver app (LifeLine Driver App) for RATS (major project)

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

LifeLine-Driver-App

NOT WORKING any nore, don't know why. Removed node_modules/ to reinstall and it stopped working.

Driver app (LifeLine Driver App) for RATS (major project). Most of the codes are copy-pasted from LifeLine-App-Test and LifeLine-App.

TESTED IN ANDROID ONLY

Notes

  • Running the app

    • The codes upto the commit with tag bare-workflow will work with

      expo start

    • Code later than this point is ejected from Managed Workflow to Bare Workflow so to run use following commands

      yarn start or npx react-native start

      yarn android or npx react-native android

  • Absolute Path

    To add new absolute path, add the alias in babel.config.js

    plugins: [
      [
        'module-resolver',
        {
          alias: {
            utils: './src/utils',
            hooks: './src/hooks',
            global: './src/global',
            assets: './src/assets',
            context: './src/context',
            screens: './src/screens',
            dummy_api: './src/dummy_api',
            navigator: './src/navigator',
            components: './src/components'
          }
        }
      ]
    ]
    
  • Environment Variable

    Use react-native-dotenv

  • React-Native-Paper Fonts

    Pass an object in fonts like showh below, not just the font name as given in docs

    fonts: {
      ...DefaultTheme.fonts,
      regular: { fontFamily: FontsList.regular }
    }
    

Attribution