1 Star 0 Fork 0

xhm / xlb_app

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

React Native Template Obytes

React Native Template Obytes

📱 A template for your next React Native project 🚀, Made with developer experience and performance first: TypeScript, Husky, Lint-Staged, react-navigation, react-query, restyle, react-hook-form, AppIcon, Splash Screen.

🚀 Use the template to start your next project or navigate to code source to get some inspiration 😉

⭐ Features

🎤 Philosophy

  • 🚀 Production-ready
  • 🧩 Minimal code
  • ⚠️ well maintained third-party libraries

🛠 Requirements

🤖 Getting started

Start your project using obytes template by running:

npx react-native init MyApp --template https://github.com/obytes/react-native-template-obytes

Open the project on your favorite IDE (vscode 😉)

src
├── api                    #axios client and api hooks using react-query
│   ├── APIProvider.tsx
│   ├── client.tsx
│   ├── index.tsx
│   ├── useAddTask.tsx
│   └── useTasks.tsx
├── core                   # core functionalities:authentication, storage, localization
│   ├── Auth
│   ├── I18n
│   └── index.tsx
├── index.tsx
├── navigation             # Navigation, stacks and tabs
│   ├── AuthNavigator.tsx
│   ├── RootNavigator.tsx
│   ├── TabNavigator.tsx
│   ├── index.tsx
│   ├── types.tsx
│   └── utils.tsx
├── screens                # App screens
│   ├── Home
│   ├── Login
│   ├── Style
│   └── index.tsx
├── translations          # translation files
│   └── en.json
└── ui                    # ui component with theming
    ├── Button.tsx
    ├── ErrorHandler
    ├── Input.tsx
    ├── Pressable.tsx
    ├── SafeAreaView.tsx
    ├── Screen.tsx
    ├── Text.tsx
    ├── View.tsx
    ├── constants.tsx
    ├── icons
    ├── index.tsx
    ├── theme
    └── utils.tsx

Enable husky Git pre-hooks by adding the following script to your packages.json and reinstall dependencies to enable husky pre-commit using yarn install

   "scripts": {
      "postinstall": "husky install",
    },

🧩 Customization

📲 Update App Icon & Splash screen

Replace App logo template logo.png with your logo under assets folder

Run the following command to generate App icons assets :

yarn react-native set-icon  --path ./assets/logo.png --background "#FFF"

For android icon, make sure to provide a logo with more padding and generate a new app icon for android :

yarn react-native set-icon  --platform android  --path ./assets/android_logo.png --background "#FFF"

To generate a standard splash screen using bootsplash package.

yarn react-native generate-bootsplash assets/logo.png \
  --background-color=FFFFFF \
  --logo-width=150 \
  --assets-path=assets

✏️ Custom fonts

Replace Inter.ttf font file with your fonts under assets/fonts folder

Run the following command to generate App icons assets :

yarn react-native link

More details how to customize App Icon and Splash screen

📚 Read More About Modules

👉 https://handbook.obytes.com/docs/mobile/get-started

Releasing and building the app with Github action

👉 https://handbook.obytes.com/docs/mobile/ci-cd/github-action-build

🔖 License

This project is MIT licensed.

MIT License Copyright (c) 2021 Obytes Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/khyj/xlb_app.git
git@gitee.com:khyj/xlb_app.git
khyj
xlb_app
xlb_app
master

搜索帮助