demo.mp4
With Fue Cli Source
npx fue-cli new
- Generate widget (default dir: src/components/widgets)
fue g widget widget-name --reactnative
- Generate modal (default dir: src/components/modals)
fue g modal modal-name --reactnative
- Generate module (default dir: src/modules)
fue g module module-name --reactnative
- Generate form (default dir: src/components/forms)
fue g form form-name --reactnative
- Generate in form a specify dir
fue g form a/b/c/form-name --reactnative
- Generate widget
fue g widget widget-name --reactnative --module=auth
- Generate modal
fue g modal modal-name --reactnative --module=auth
- Generate module
fue g module module-name --reactnative --module=auth
- Generate form
fue g form form-name --reactnative --module=auth
- Generate screen
fue g screen screen-name --reactnative --module=auth
- Generate in form a specify dir
fue g form a/b/c/form-name --reactnative
- β Navigation v6
- β Theme by restyle
- β Splash screen
- β State management
- β Multi env: dev, stg, prd
- β Multi language
- β Validate form
- β Integrate api
- β Git Hooks with Husky
Package | Version |
---|---|
React navigation | v6 |
@shopify/restyle | ^2.1.0 |
axios | ^0.27.2 |
i18next | ^21.8.11 |
react-hook-form | ^7.33.0 |
react-native | 0.72.5 |
react-native-bootsplash | ^5.0.3 |
react-native-config | ^1.5.1 |
react-native-mmkv | ^2.10.2 |
react-native-reanimated | ^3.5.4 |
yup | ^0.32.11 |
zustand | ^4.4.2 |
- XCode >= 13.2.1, Android Studio, JDK 11
- NodeJS v16.17.0, Yarn v1.22.19
- Code editor: VScode, ext (Auto Rename Tag, Code Spell Checker, Color Highlight, Error Lens, ES7+ React/Redux/React-Native snippets, ESLint, Import Cost, Prettier - Code formatter, Rainbow Brackets)
- Setting up the development environment: React Native
# pull source from cli
npx fue-cli new
# pull source from git
git clone https://github.com/bonnguyenitc/react-native-starter.git
# install:
yarn
# run application android development
yarn android:dev
yarn android:stg
yarn android:prod
# run application iOS development
yarn ios:dev
yarn ios:stg
yarn ios:prod
# build release with cmd
./deploy.sh
And more in package.json. Check it!
- Airbnb JavaScript Style Guide LINK
- Naming
- Folder, File : kabab-case (name-file.tsx)
- Hook file, naming variables, functions, classes, interfaces, types, enums: camelCase (useHook)
βββ Gemfile
βββ README.md
βββ __mocks__
βββ __tests__
βββ android
βββ app.json
βββ assets
βββ babel.config.js
βββ bin
βββ index.js
βββ ios
βββ jest
βββ jest.config.js
βββ metro.config.js
βββ package.json
βββ patches
βββ react-native.config.js
βββ scripts
βββ src
βΒ Β βββ app.tsx
βΒ Β βββ assets
βΒ Β βΒ Β βββ fonts
βΒ Β βΒ Β βββ images
βΒ Β βΒ Β βββ index.ts
βΒ Β βΒ Β βββ jsons
βΒ Β βββ components
βΒ Β βΒ Β βββ form
βΒ Β βΒ Β βββ modals
βΒ Β βΒ Β βββ widgets
βΒ Β βΒ Β βββ align
βΒ Β βΒ Β βββ app-bar
βΒ Β βΒ Β βββ box
βΒ Β βΒ Β βββ button
βΒ Β βΒ Β βββ card
βΒ Β βΒ Β βββ center
βΒ Β βΒ Β βββ col
βΒ Β βΒ Β βββ if
βΒ Β βΒ Β βββ image
βΒ Β βΒ Β βββ index.ts
βΒ Β βΒ Β βββ positioned
βΒ Β βΒ Β βββ row
βΒ Β βΒ Β βββ screen
βΒ Β βΒ Β βββ space
βΒ Β βΒ Β βββ spinner
βΒ Β βΒ Β βββ stack
βΒ Β βΒ Β βββ switch
βΒ Β βΒ Β βββ text
βΒ Β βΒ Β βββ text-button
βΒ Β βΒ Β βββ text-input
βΒ Β βΒ Β βββ touchable
βΒ Β βΒ Β βββ wrap
βΒ Β βββ localization
βΒ Β βββ modules
βΒ Β βΒ Β βββ auth
βΒ Β βΒ Β βΒ Β βββ api
βΒ Β βΒ Β βΒ Β βββ assets
βΒ Β βΒ Β βΒ Β βββ components
βΒ Β βΒ Β βΒ Β βββ hooks
βΒ Β βΒ Β βΒ Β βββ index.ts
βΒ Β βΒ Β βΒ Β βββ routes
βΒ Β βΒ Β βΒ Β βββ screens
βΒ Β βΒ Β βΒ Β βββ stores
βΒ Β βΒ Β βΒ Β βββ types
βΒ Β βΒ Β βΒ Β βββ utils
βΒ Β βΒ Β βββ error
βΒ Β βΒ Β βΒ Β βββ components
βΒ Β βΒ Β βΒ Β βββ screens
βΒ Β βΒ Β βββ home
βΒ Β βΒ Β βββ components
βΒ Β βΒ Β βββ routes
βΒ Β βΒ Β βββ screens
βΒ Β βββ provider
βΒ Β βββ routes
βΒ Β βββ common
βΒ Β βββ config
βΒ Β βββ constants
βΒ Β βββ hooks
βΒ Β βββ libs
βΒ Β βββ stores
βΒ Β βββ themes
βΒ Β βββ types
βΒ Β βββ utils
βββ tsconfig.json
βββ tsconfig.paths.json
βββ types
βΒ Β βββ declarations.d.ts
βββ yarn-error.log
βββ yarn.lock
βββ auth
βββ api
βββ assets
βββ components
βββ hooks
βββ routes
βββ screens
βββ stores
βββ types
βββ utils