Skip to content

Commit 1e9be44

Browse files
Merge branch 'master' of github.com:anisurrahman072/React-Native-Advanced-Guide
2 parents 8b68aef + 4f6d365 commit 1e9be44

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

New-Architecture/How-to-Enable-New-Architecture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Navigate to the **ios directory** and run the following:
7878

7979
Then build and run the app as usual:
8080

81-
npx react-native run-android
81+
npx react-native run-ios
8282

8383
> NOTE: In future when you do a pod install command then all new architecture code will be removed from pod file.
8484

New-Architecture/New-Architecture-in-depth.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ There are **2 types** of Native Module System in React Native
6060

6161
1. **OLD native module** **system** (aka: **“Bridge based Native Module system”** or **“Legacy native module system”** that uses **JSON data Serialization**)
6262

63-
2. **New native module** **system** (aka: **Turbo Module system** that uses **JSI.** JSI (JavaScript Interface) was written by C++)
63+
2. **New native module** **system** (aka: **Turbo Module system** that uses **JSI.** JSI (JavaScript Interface) is written in C++)
6464

6565
### **Typed JavaScript code**
6666

@@ -138,7 +138,7 @@ The **new Architecture** of **React Native** completes its full cycle in **2 pha
138138

139139
### Phase 1: App Build time
140140

141-
When a developer turns on both **Codegen** and **Turbo Module** in their app and then gives a **build command** just before production deployment to create an **APK** for **Android** or an **IAP** for **iOS** device, the following steps are done from the new architecture flow:
141+
When a developer turns on both **Codegen** and **Turbo Module** in their app and then gives a **build command** just before production deployment to create an **APK** for **Android** or an **IPA** for **iOS** device, the following steps are done from the new architecture flow:
142142

143143
- The **Build** command **compiles** the JavaScript code into **bytecode**.
144144

@@ -390,9 +390,9 @@ The **React element tree** is used to render the **React shadow tree** in **C++*
390390
);
391391
};
392392

393-
During the **Render phase**, a **shadow node** is created for **each React element**. This shadow node is created **synchronously**, only for React **host components**, and **not for composite components** such as **<View>**.
393+
During the **Render phase**, a **shadow node** is created for **each React element**. This shadow node is created **synchronously**, only for React **host components**, and **not for composite components** such as **\<View>**.
394394

395-
When transformed into a Shadow Block , the **<View>** is translated into a **<ViewShadowNode>** object.
395+
When transformed into a Shadow Block , the **\<View>** is translated into a **\<ViewShadowNode>** object.
396396

397397
The new **renderer** will automatically reflect the **parent-child relationships** between React element nodes. The above process shows how the React shadow tree is assembled; once it is complete, **the renderer triggers a commit** of the **element tree**.
398398

0 commit comments

Comments
 (0)