Skip to content

Commit a4e0268

Browse files
authored
feat: update to rn 077 and new arch enabled by default (#41)
1 parent 1328fed commit a4e0268

File tree

119 files changed

+1376
-3639
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+1376
-3639
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
:fireworks: Clean and minimalist React Native template for a quick start with TypeScript and so much more components.
44

5-
## Current version: 0.75.4
5+
## Current version: 0.77.1
66

77
## :star: Features
88

@@ -20,11 +20,11 @@
2020

2121
## Base config (Now u can config on env)
2222

23-
- Change App name `APP_DISPLAY_NAME` on `env/(.dev/.prod)`
24-
- Change App id `BUNDLE_IDENTIFIER` on `env/(.dev/.prod)`
25-
- Change App version `VERSION_NAME` on `env/(.dev/.prod)`
26-
- Change App build number `VERSION_CODE` on `env/(.dev/.prod)`
27-
- Change App URL `API_URL` on `env/(.dev/.prod)`
23+
- Change App name `APP_DISPLAY_NAME` on `env/.dev`
24+
- Change App id `BUNDLE_IDENTIFIER` on `env/.dev`
25+
- Change App version `VERSION_NAME` on `env/.dev`
26+
- Change App build number `VERSION_CODE` on `env/.dev`
27+
- Change App URL `API_URL` on `env/.dev`
2828

2929
### Gen app icon and Change app icon by env
3030

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "rn-boiler-template",
33
"private": false,
4-
"version": "1.75.8",
4+
"version": "1.77.1",
55
"description": "Clean and minimalist React Native template for a quick start with TypeScript and components",
66
"scripts": {
77
"test": "exit 0"
@@ -30,7 +30,7 @@
3030
"boilerplate",
3131
"starter"
3232
],
33-
"author": "MasonLe <lhngoc2497@gmail.com>",
33+
"author": "NgocLe <lhngoc2497@gmail.com>",
3434
"license": "MIT",
3535
"licenses": [
3636
{

template/README.md

+25-25
Original file line numberDiff line numberDiff line change
@@ -3,68 +3,68 @@
33
# Setup
44

55
- Setup development environment [React Native CLI](https://reactnative.dev/docs/environment-setup)
6-
- Node version >= 18 (recommended use [fnm](https://github.com/Schniz/fnm))
6+
- Node version >= 20 (recommended use [fnm](https://github.com/Schniz/fnm))
77
- We recommended to use [yarn](https://classic.yarnpkg.com/en/docs/install/#mac-stable) or [bun](https://bun.sh/)
8-
- Ruby version: 2.7.6 (recommended use [rbenv](https://github.com/rbenv/rbenv))
8+
- Ruby version: 3.2.2 (recommended use [rbenv](https://github.com/rbenv/rbenv))
99

1010
> Xcode run failed with status 127
1111
>
1212
> This error occurs when xcode cannot access node. Xcode use .bash_profile, so add PATH to .bash_profile.
1313
14-
Example ```.bash_profile```:
14+
Example `.bash_profile`:
1515

1616
```
1717
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
1818
PATH=$PATH:/opt/homebrew/bin
1919
export PATH=$PATH:/usr/local/bin
2020
```
2121

22-
> Remember add ```source ~/.bash_profile``` to top of ```Pre-actions``` in xcode scheme
22+
> Remember add `source ~/.bash_profile` to top of `Pre-actions` in xcode scheme
2323
2424
# Importance before commit
2525

26-
>### <strong>You must fix all bug of ESLint </strong>
26+
> ### <strong>You must fix all bug of ESLint </strong>
2727
28-
>### <strong>You must config git Username/Email</strong>
28+
> ### <strong>You must config git Username/Email</strong>
2929
3030
# Command
3131

32-
> <strong>Before run script, you must navigate to your project</strong> :``` cd <your_project_folder> ```
32+
> <strong>Before run script, you must navigate to your project</strong> :`cd <your_project_folder>`
3333
34-
- Install dependencies: ``` yarn ```
35-
- Run Android: ``` yarn android:dev ``` (dev/prod by default)
36-
- Run IOS: ``` yarn ios:dev ``` (dev/prod by default)
37-
- Start server: ``` yarn start ```
38-
- Install library then pods IOS: ``` yarn add <your_library> ```
34+
- Install dependencies: `yarn`
35+
- Run Android: `yarn android:dev` (dev/prod by default)
36+
- Run IOS: `yarn ios:dev` (dev/prod by default)
37+
- Start server: `yarn start`
38+
- Install library then pods IOS: `yarn add <your_library>`
3939
- Change splash logo
4040
- Step 1: Get file .PNG to change then rename it to splash.PNG
4141
- Step 2: Copy and pate to splash folder
42-
- Step 3: Run command: ``` yarn splash ```
42+
- Step 3: Run command: `yarn splash`
4343
-
4444
- ...
4545

4646
> #### Detail command: Read script of package.json file
4747
4848
## Base config (Now u can config on env)
4949

50-
- Change App name ``` APP_DISPLAY_NAME ``` on ``` env/(dev.json/.prod) ```
51-
- Change App id ``` BUNDLE_IDENTIFIER ``` on ``` env/(dev.json/.prod) ```
52-
- Change App version ``` VERSION_NAME ``` on ``` env/(dev.json/.prod) ```
53-
- Change App build number ``` VERSION_CODE ``` on ``` env/(dev.json/.prod) ```
54-
- Change App URL ``` API_URL ``` on ``` env/(dev.json/.prod) ```
50+
- Change App name `APP_DISPLAY_NAME` on `env/.dev`
51+
- Change App id `BUNDLE_IDENTIFIER` on `env/.dev`
52+
- Change App version `VERSION_NAME` on `env/.dev`
53+
- Change App build number `VERSION_CODE` on `env/.dev`
54+
- Change App URL `API_URL` on `env/.dev`
5555

5656
### Gen app icon and Change app icon by env
5757

5858
Build with: [rn-ml](https://github.com/ngocle2497/cli-tools)
5959

6060
- Update app icon file from appicon folder
61-
- Run: ``` yarn app-icon ``` or ``` yarn app-icon:dev ```
61+
- Run: `yarn app-icon` or `yarn app-icon:dev`
6262
- Android: auto change flavor script
6363
- IOS: Change ASSETCATALOG_COMPILER_APPICON_NAME to your respective App Icon Assets (in respective env file)
6464

6565
# Environment
6666

67-
>### Create new Environment
67+
> ### Create new Environment
6868
6969
Ex: New Environment named: Demo
7070

@@ -115,7 +115,7 @@ Ex: New Environment named: Demo
115115

116116
- ## Setup Android/IOS
117117

118-
>## This project use [react-native-keys](https://github.com/numandev1/react-native-keys) to switch env
118+
> ## This project use [react-native-keys](https://github.com/numandev1/react-native-keys) to switch env
119119
120120
- ### Android
121121

@@ -143,12 +143,12 @@ Ex: New Environment named: Demo
143143
source ~/.bash_profile
144144
ENV_PATH="env/dev.json"
145145
export KEYSFILE=$ENV_PATH
146-
146+
147147
"${SRCROOT}/../node_modules/react-native-keys/keysIOS.js"
148-
148+
149149
"${SRCROOT}/../scripts/prepare.js" "$ENV_PATH"
150-
151-
```
150+
151+
```
152152
153153
## Caution
154154

template/_watchmanconfig

-1
This file was deleted.

template/_yarn/plugins/plugin-after-install.js

-111
This file was deleted.

template/_yarn/releases/yarn-3.6.4.cjs

-874
This file was deleted.

template/_yarnrc.yml

-9
This file was deleted.

template/android/_gitignore

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# OSX
2+
#
3+
.DS_Store
4+
5+
# Android/IntelliJ
6+
#
7+
build/
8+
.idea
9+
.gradle
10+
local.properties
11+
*.iml
12+
*.hprof
13+
.cxx/
14+
15+
# Bundle artifacts
16+
*.jsbundle

0 commit comments

Comments
 (0)