Skip to content

MedRedha/RedhaBoilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

38 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

React Native TypeScript Boilerplate
by The WuuD Teamยฎ

GitHub package.json version GitHub package.json dependency version (prod) GitHub package.json dependency version (prod) GitHub package.json dependency version (prod) GitHub last commit Pull Request Website GitHub stars Platforms

Redha Boilerplate Logo wuud team cover


๐Ÿš€ Installation

You can simply clone the project and start with your new awesome project

git clone git@github.com:WuuD-Team/RedhaBoilerplate.git my-app-name

Android local.properties

  • Go to Android -> local.properties
  • Change the your local android sdk and cmake path

๐ŸŽ What's Included?

  • Navigation System
    • React Navigation V5
    • React Navigation Helpers
    • Ready to use Stack and Tab Screens with navigation
  • Built-in Theme System
    • Colors
    • Fonts
    • Built-in TextWrapper for better Custom Text usage
  • Built-in Animated Splash Screen
  • Built-in Localization (Multi-Language Support)
  • HTTP Network Management
    • Axios
    • API Service with Usage Examples
  • Built-in EventEmitter
    • EventBus
  • Built-in Local Storage asa MMKV Storage
    • LocalStorage (Instead of AsyncStorage)
  • Local Storage Ready to Use Util Functions
  • Babel Plugin Module Resolver
    • Fixing the relative path problem
    • Visit .babelrc to ready to use and more customization
  • Built-in Custom Font Implementation
    • All you need to do is copy-paste the .tff file and run npx react-native-asset command

๐Ÿ— Project Structure

โ”œโ”€โ”€ App.tsx
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ __tests__
|  โ””โ”€โ”€ App-test.tsx
โ”œโ”€โ”€ android
|  โ”œโ”€โ”€ app
|  โ”œโ”€โ”€ build.gradle
|  โ”œโ”€โ”€ gradle
|  โ”œโ”€โ”€ gradle.properties
|  โ”œโ”€โ”€ gradlew
|  โ”œโ”€โ”€ gradlew.bat
|  โ”œโ”€โ”€ link-assets-manifest.json
|  โ”œโ”€โ”€ local.properties
|  โ””โ”€โ”€ settings.gradle
โ”œโ”€โ”€ app.json
โ”œโ”€โ”€ babel.config.js
โ”œโ”€โ”€ index.js
โ”œโ”€โ”€ ios
|  โ”œโ”€โ”€ Podfile
|  โ”œโ”€โ”€ Podfile.lock
|  โ”œโ”€โ”€ Pods
|  โ”œโ”€โ”€ RedhaBoilerplate
|  โ”œโ”€โ”€ RedhaBoilerplate-tvOS
|  โ”œโ”€โ”€ RedhaBoilerplate-tvOSTests
|  โ”œโ”€โ”€ RedhaBoilerplate.xcodeproj
|  โ”œโ”€โ”€ RedhaBoilerplate.xcworkspace
|  โ”œโ”€โ”€ RedhaBoilerplateTests
|  โ””โ”€โ”€ link-assets-manifest.json
โ”œโ”€โ”€ logbox.js
โ”œโ”€โ”€ metro.config.js
โ”œโ”€โ”€ package-lock.json
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ react-native.config.js
โ”œโ”€โ”€ src
|  โ”œโ”€โ”€ assets
|  โ”œโ”€โ”€ screens
|  โ”œโ”€โ”€ services
|  โ”œโ”€โ”€ shared
|  โ””โ”€โ”€ utils
โ””โ”€โ”€ yarn.lock

๐Ÿ—ƒ Components

๐ŸŽจ Styles

  • TextWrapper over default Text component
  • Colors
  • Fonts
  • Theme
  • Font Size

๐Ÿšข Imports

import colors from "@colors";

<Text color={colors.light.primary}>
  Heading 1 with custom color from theme
</Text>;
import fonts from "@fonts";

<Text fontFamily={fonts.helvetica.regular}>
  Heading 1 with custom font usage
</Text>;
import fontSize from "@font-size";
import theme from "@theme";

if you want to call them all at once

import { theme, fonts, colors, spacing, fontSize } from "@shared-styles/index";

๐Ÿงญ Step By Step Guide

๐Ÿงผ Clean-Up & Simple Run

Clean up the files from the example repository and do not forget to install the dependencies

  • rm -rf .git README.md
  • git init
  • yarn || npm i
  • npx pod-install (iOS Only)
  • yarn start
  • yarn ios || yarn android

OR

  • npm i && npx pod-install
  • yarn start
  • yarn ios || yarn android

๐Ÿท Rename the project: (Thanks to react-native-name)

npx react-native-rename <your-project-name>

With custom Bundle Identifier (Android only. For iOS, please use Xcode)

npx react-native-rename <your-project-name> -b <bundleIdentifier>

๏ฃฟ Install Pods (iOS Only)

  • yarn || npm i
  • cd ios && pod install
  • yarn start
  • yarn ios || yarn android

๐Ÿค– Android local.properties (Android Only)

  • yarn || npm i
  • cd android && mkdir local.properties
  • nano local.properties

๐Ÿ’ป Example of MacOS Android SDK Path

Make sure that set your right path of Android SDK

ndk.dir=/Users/your-name/Library/Android/sdk/ndk-bundle
sdk.dir=/Users/your-name/Library/Android/sdk
  • cd .. && yarn start && yarn android

๐Ÿ’ช Dev Team

Backend Developer

Moh Badjah
Lead Backend Developer
Web Developer

Nassim Amokrane
Lead Web Developer
Mobile Developer

Med Redha
Lead Mobile Developer

๐Ÿ‘จโ€โš–๏ธ License

The code is available under the MIT license.


Made with ๐Ÿ’– by the WuuD Teamยฎ - In Code We Trust -