We're proudly announce that Version 4.0.0
is here!
React
and React Native
Dependencies 🌟Typescript
Flipper Ready
Navigation System
NEW: Built-in Theme System with Hooks
Text
ComponentReady to use React Native Reanimated 2 Integration
Native Splash Screen Integration
Awesome React Native Helpers Integration
React Native Vector Icons
Localization (Multi-Language Support)
HTTP Network Management
Built-in EventEmitter
Babel Plugin Module Resolver
.babelrc
to ready to use and more customizationPre-commit Husky Integration
npm run husky:setup
commitlint
Integration for better commit linterBuilt-in Custom Font Implementation
assets/fonts
foldernpx react-native-asset
commandBetter Eslint and Prettier
.eslintrc.js
and .prettierrc.js
PrivacyInfo.xcprivacy
added for iOS
More and more! :)
To create a new project using the barebone boilerplate:
git clone https://github.com/WrathChaos/react-native-typescript-boilerplate.git my-app-name
Clean up the files from the example repository and do not forget to install the dependencies
There is a good example by default on HomeScreen
. You can delete the all screens.
npm i
npm run clean-up
npm i && npx pod-install
react-native run-ios/android
OR
rm -rf .git README.md
rm -rf ./assets
npm i
npm run husky:setup
npx pod-install
(iOS Only)react-native run-ios/android
Before doing anything else, please simply run the command to initalize the husky. If you do not run clean-up part you should run the husky setup by yourself
npm run husky:setup
husky:setup
will handle the initialization, installation and ready to use commitlint
, prettier
and eslint
.
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>
npm i
cd ios && pod install
cd .. && react-native run-ios/android
npm i
cd android && mkdir local.properties
nano local.properties
Make sure that set your right path of Android SDK
Replace your machine name instead of username
sdk.dir=/Users/username/Library/Android/sdk
Replace your machine name instead of username
sdk.dir=/Users/username/Library/Android/sdk
cd .. & react-native run-ios/android
react-native-animated-splash-screen
Babel Plugin Module Resolver
Documentation with ExampleNavigation Service
Documentation with ExampleLocalization
Documentation with ExampleTheme
Documentation with ExampleFAQ
DocumentationWebsite
for the boilerplateDetox E2E
Integration Fork VersionMedium
DevTo
Photo by Shifaaz shamoon on Unsplash
Photo by Jamie Street on Unsplash
FreakyCoder, kurayogun@gmail.com
React Native Typescript Boilerplate is available under the MIT license. See the LICENSE file for more info.