Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Commit 780a7d8

Browse files
author
Riccardo Cipolleschi
committed
[Polishing] Add commit hashes
1 parent 99ff1ac commit 780a7d8

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
## Steps
2020

21-
### <a name="setup" />[[Setup] Create the calculator folder and the package.json](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/)
21+
### <a name="setup" />[[Setup] Create the calculator folder and the package.json](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/9021940f8d65d1ffd93ced7ab211e17781a7e986)
2222

2323
1. `mkdir calculator`
2424
1. `touch calculator/package.json`
@@ -57,7 +57,7 @@
5757
}
5858
```
5959

60-
### <a name="js-import" />[[Native Module] Create the JS import](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/)
60+
### <a name="js-import" />[[Native Module] Create the JS import](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/93779da0638eaa39030bacd3947030e422488c54)
6161

6262
1. `mkdir calculator/src`
6363
1. `touch calculator/src/index.js`
@@ -69,7 +69,7 @@ import { NativeModules } from 'react-native'
6969
export default NativeModules.Calculator;
7070
```
7171

72-
### <a name="ios-native" />[[Native Module] Create the iOS implementation](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/)
72+
### <a name="ios-native" />[[Native Module] Create the iOS implementation](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/dcf74b8aac1f7b9ded606e4effa41830d652539d)
7373

7474
1. `mkdir calculator/ios`
7575
1. Create an `ios/RNCalculator.h` file and fill it with the following code:
@@ -124,7 +124,7 @@ Pod::Spec.new do |s|
124124
end
125125
```
126126

127-
### <a name="android-native" />[[Native Module] Create the Android implementation](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/)
127+
### <a name="android-native" />[[Native Module] Create the Android implementation](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/7aca0fb5af0ba13e854a0f51f2953389668ee328)
128128

129129
1. Create a folder `calculator/android`
130130
1. Create a file `calculator/android/build.gradle` and add this code:
@@ -231,7 +231,7 @@ end
231231
}
232232
```
233233

234-
### <a name="test-native" />[[Native Module] Test The Native Module](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/)
234+
### <a name="test-native" />[[Native Module] Test The Native Module](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/af2d57e53f5f5a423329966ac14beeeff2a42460)
235235

236236
1. At the same level of calculator run `npx react-native init OldArchitecture --version 0.70.0-rc.2`
237237
1. `cd OldArchitecture && yarn add ../calculator`
@@ -277,7 +277,7 @@ end
277277

278278
**Note:** OldArchitecture app has not been committed not to pollute the repository.
279279

280-
### <a name="js-spec" />[[TurboModule] Add the JavaScript specs](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/)
280+
### <a name="js-spec" />[[TurboModule] Add the JavaScript specs](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/019e750a75992dfb04f39060cdd4887695ef5a19)
281281

282282
1. `touch calculator/src/NativeCalculator.js`
283283
1. Paste the following code:
@@ -295,7 +295,7 @@ end
295295
): ?Spec);
296296
```
297297

298-
### <a name="codegen" />[[TurboModule] Set up CodeGen](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/)
298+
### <a name="codegen" />[[TurboModule] Set up CodeGen](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/ea87b8b5e569bf53bcf7b3b071cc507491712f40)
299299

300300
1. Open the `calculator/package.json`
301301
1. Add the following snippet at the end of it:
@@ -311,7 +311,7 @@ end
311311
}
312312
```
313313

314-
### <a name="android-gradle" />[[TurboModule] Set up build.gradle](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/)
314+
### <a name="android-gradle" />[[TurboModule] Set up build.gradle](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/1c13c7511f2eb215756e2a8c49cd44e9b9f237a9)
315315

316316
1. Open the `calculator/android/build.gradle` file and update the code as follows:
317317
```diff
@@ -330,7 +330,7 @@ end
330330
implementation 'com.facebook.react:react-native:+'
331331
}
332332
333-
### <a name="ios-autolinking" />[[TurboModule] Set up `podspec` file](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/)
333+
### <a name="ios-autolinking" />[[TurboModule] Set up `podspec` file](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/9fd0a9eba86a4609b1eedc3035903b7309b860c8)
334334
335335
1. Open the `calculator/calculator.podspec` file
336336
1. Before the `Pod::Spec.new do |s|` add the following code:
@@ -355,7 +355,7 @@ end
355355
s.dependency "ReactCommon/turbomodule/core"
356356
end
357357

358-
### <a name="ios-tm-code" />[[TurboModule] Update the Native iOS code](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/)
358+
### <a name="ios-tm-code" />[[TurboModule] Update the Native iOS code](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/8b69380bb5b1defc90f9b0b6b67d6b83e845da06)
359359

360360
1. In the `ios/RNCalculator` folder, rename the `RNCalculator.m` into `RNCalculator.mm`
361361
1. Open it and replace its content with:
@@ -413,7 +413,7 @@ end
413413
@end
414414
```
415415

416-
### <a name="android-backward" />[[TurboModule] Android: Convert ReactPackage to a backward compatible TurboReactPackage](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/)
416+
### <a name="android-backward" />[[TurboModule] Android: Convert ReactPackage to a backward compatible TurboReactPackage](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/2be8af1a5fa5a8a64d142efde13e3f8bedef302b)
417417

418418
1. Open the `calculator/android/src/main/java/com/rnnewarchitecturelibrary/CalculatorModule.java` and modify it as it follows:
419419
```diff
@@ -482,7 +482,7 @@ end
482482
}
483483
```
484484

485-
### <a name="android-sourceset" />[[TurboModule] Android: Update the Native code to use two sourcesets](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/)
485+
### <a name="android-sourceset" />[[TurboModule] Android: Update the Native code to use two sourcesets](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/a8a8225465d5cccab567ab2d1ca15673e444632e)
486486

487487
1. Open the `calculator/android/build.gradle` file and update the code as it follows:
488488
```diff
@@ -591,7 +591,7 @@ end
591591
}
592592
```
593593
594-
### <a name="android-refactor" />[[TurboModule] Android: Refactor the code to use a shared implementation](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/)
594+
### <a name="android-refactor" />[[TurboModule] Android: Refactor the code to use a shared implementation](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/1110898284f081b7a00f8ac978664a7b74760b68)
595595
596596
1. Create a new `calculator/android/src/main/java/com/rnnewarchitecturelibrary/CalculatorModuleImpl.java` file (notice that the `src`'s subfolder is now `main`) and paste the following code:
597597
```java
@@ -694,7 +694,7 @@ end
694694
}
695695
1. Remove the `android/src/main/java/com/rnnewarchitecturelibrary/CalculatorModule.java` (the one in the `main` folder).
696696

697-
### <a name="js-unification" />[[TurboModule] Unify JavaScript interface](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/)
697+
### <a name="js-unification" />[[TurboModule] Unify JavaScript interface](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/30597ec00939afc10fc39e4de50003a3f4a166a3)
698698

699699
1. Open the `src/index.js` file
700700
1. Replace the code with the following:
@@ -703,7 +703,7 @@ end
703703
export default require("./NativeCalculator").default;
704704
```
705705

706-
### <a name="tm-test" />[[TurboModule] Test the Turbomodule]()
706+
### <a name="tm-test" />[[TurboModule] Test the Turbomodule](https://github.com/cipolleschi/RNNewArchitectureLibraries/commit/99ff1accc997d466d243fb37f308bcc774034abc)
707707

708708
1. At the same level of calculator run `npx react-native init NewArchitecture --version 0.70.0-rc.2`
709709
1. `cd NewArchitecture && yarn add ../calculator`

0 commit comments

Comments
 (0)