From 3a7ecf471ba7bde7189b1077b222232fd234d087 Mon Sep 17 00:00:00 2001 From: TaylorPzreal Date: Tue, 30 Dec 2025 19:10:27 +0800 Subject: [PATCH 1/2] Rename SampleNativeModuleProvider to NativeSampleModuleProvider --- docs/the-new-architecture/pure-cxx-modules.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/the-new-architecture/pure-cxx-modules.md b/docs/the-new-architecture/pure-cxx-modules.md index 2a259ff04a9..37fa505e53f 100644 --- a/docs/the-new-architecture/pure-cxx-modules.md +++ b/docs/the-new-architecture/pure-cxx-modules.md @@ -333,10 +333,10 @@ The ModuleProvider is an Objective-C++ that glues together the Pure C++ module w 1. From Xcode, select the `SampleApp` project and press + N to create a new file. 2. Select the `Cocoa Touch Class` template -3. Add the name `SampleNativeModuleProvider` (keep the other field as `Subclass of: NSObject` and `Language: Objective-C`) +3. Add the name `NativeSampleModuleProvider` (keep the other field as `Subclass of: NSObject` and `Language: Objective-C`) 4. Click Next to generate the files. -5. Rename the `SampleNativeModuleProvider.m` to `SampleNativeModuleProvider.mm`. The `mm` extension denotes an Objective-C++ file. -6. Implement the content of the `SampleNativeModuleProvider.h` with the following: +5. Rename the `NativeSampleModuleProvider.m` to `NativeSampleModuleProvider.mm`. The `mm` extension denotes an Objective-C++ file. +6. Implement the content of the `NativeSampleModuleProvider.h` with the following: ```objc title="NativeSampleModuleProvider.h" @@ -354,7 +354,7 @@ NS_ASSUME_NONNULL_END This declares a `NativeSampleModuleProvider` object that conforms to the `RCTModuleProvider` protocol. -7. Implement the content of the `SampleNativeModuleProvider.mm` with the following: +7. Implement the content of the `NativeSampleModuleProvider.mm` with the following: ```objc title="NativeSampleModuleProvider.mm" From 791be55f7257645d2a345ca6571184dfdd726a7c Mon Sep 17 00:00:00 2001 From: TaylorPzreal Date: Tue, 30 Dec 2025 22:12:28 +0800 Subject: [PATCH 2/2] Rename SampleNativeModuleProvider to NativeSampleModuleProvider for history version --- .../version-0.79/the-new-architecture/pure-cxx-modules.md | 8 ++++---- .../version-0.80/the-new-architecture/pure-cxx-modules.md | 8 ++++---- .../version-0.81/the-new-architecture/pure-cxx-modules.md | 8 ++++---- .../version-0.82/the-new-architecture/pure-cxx-modules.md | 8 ++++---- .../version-0.83/the-new-architecture/pure-cxx-modules.md | 8 ++++---- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md index 665a980f010..23cc351d132 100644 --- a/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md @@ -332,10 +332,10 @@ The ModuleProvider is an Objective-C++ that glues together the Pure C++ module w 1. From Xcode, select the `SampleApp` project and press + N to create a new file. 2. Select the `Cocoa Touch Class` template -3. Add the name `SampleNativeModuleProvider` (keep the other field as `Subclass of: NSObject` and `Language: Objective-C`) +3. Add the name `NativeSampleModuleProvider` (keep the other field as `Subclass of: NSObject` and `Language: Objective-C`) 4. Click Next to generate the files. -5. Rename the `SampleNativeModuleProvider.m` to `SampleNativeModuleProvider.mm`. The `mm` extension denotes an Objective-C++ file. -6. Implement the content of the `SampleNativeModuleProvider.h` with the following: +5. Rename the `NativeSampleModuleProvider.m` to `NativeSampleModuleProvider.mm`. The `mm` extension denotes an Objective-C++ file. +6. Implement the content of the `NativeSampleModuleProvider.h` with the following: ```objc title="NativeSampleModuleProvider.h" @@ -353,7 +353,7 @@ NS_ASSUME_NONNULL_END This declares a `NativeSampleModuleProvider` object that conforms to the `RCTModuleProvider` protocol. -7. Implement the content of the `SampleNativeModuleProvider.mm` with the following: +7. Implement the content of the `NativeSampleModuleProvider.mm` with the following: ```objc title="NativeSampleModuleProvider.mm" diff --git a/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md index 665a980f010..23cc351d132 100644 --- a/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md @@ -332,10 +332,10 @@ The ModuleProvider is an Objective-C++ that glues together the Pure C++ module w 1. From Xcode, select the `SampleApp` project and press + N to create a new file. 2. Select the `Cocoa Touch Class` template -3. Add the name `SampleNativeModuleProvider` (keep the other field as `Subclass of: NSObject` and `Language: Objective-C`) +3. Add the name `NativeSampleModuleProvider` (keep the other field as `Subclass of: NSObject` and `Language: Objective-C`) 4. Click Next to generate the files. -5. Rename the `SampleNativeModuleProvider.m` to `SampleNativeModuleProvider.mm`. The `mm` extension denotes an Objective-C++ file. -6. Implement the content of the `SampleNativeModuleProvider.h` with the following: +5. Rename the `NativeSampleModuleProvider.m` to `NativeSampleModuleProvider.mm`. The `mm` extension denotes an Objective-C++ file. +6. Implement the content of the `NativeSampleModuleProvider.h` with the following: ```objc title="NativeSampleModuleProvider.h" @@ -353,7 +353,7 @@ NS_ASSUME_NONNULL_END This declares a `NativeSampleModuleProvider` object that conforms to the `RCTModuleProvider` protocol. -7. Implement the content of the `SampleNativeModuleProvider.mm` with the following: +7. Implement the content of the `NativeSampleModuleProvider.mm` with the following: ```objc title="NativeSampleModuleProvider.mm" diff --git a/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md index 665a980f010..23cc351d132 100644 --- a/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md @@ -332,10 +332,10 @@ The ModuleProvider is an Objective-C++ that glues together the Pure C++ module w 1. From Xcode, select the `SampleApp` project and press + N to create a new file. 2. Select the `Cocoa Touch Class` template -3. Add the name `SampleNativeModuleProvider` (keep the other field as `Subclass of: NSObject` and `Language: Objective-C`) +3. Add the name `NativeSampleModuleProvider` (keep the other field as `Subclass of: NSObject` and `Language: Objective-C`) 4. Click Next to generate the files. -5. Rename the `SampleNativeModuleProvider.m` to `SampleNativeModuleProvider.mm`. The `mm` extension denotes an Objective-C++ file. -6. Implement the content of the `SampleNativeModuleProvider.h` with the following: +5. Rename the `NativeSampleModuleProvider.m` to `NativeSampleModuleProvider.mm`. The `mm` extension denotes an Objective-C++ file. +6. Implement the content of the `NativeSampleModuleProvider.h` with the following: ```objc title="NativeSampleModuleProvider.h" @@ -353,7 +353,7 @@ NS_ASSUME_NONNULL_END This declares a `NativeSampleModuleProvider` object that conforms to the `RCTModuleProvider` protocol. -7. Implement the content of the `SampleNativeModuleProvider.mm` with the following: +7. Implement the content of the `NativeSampleModuleProvider.mm` with the following: ```objc title="NativeSampleModuleProvider.mm" diff --git a/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md index 665a980f010..23cc351d132 100644 --- a/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md @@ -332,10 +332,10 @@ The ModuleProvider is an Objective-C++ that glues together the Pure C++ module w 1. From Xcode, select the `SampleApp` project and press + N to create a new file. 2. Select the `Cocoa Touch Class` template -3. Add the name `SampleNativeModuleProvider` (keep the other field as `Subclass of: NSObject` and `Language: Objective-C`) +3. Add the name `NativeSampleModuleProvider` (keep the other field as `Subclass of: NSObject` and `Language: Objective-C`) 4. Click Next to generate the files. -5. Rename the `SampleNativeModuleProvider.m` to `SampleNativeModuleProvider.mm`. The `mm` extension denotes an Objective-C++ file. -6. Implement the content of the `SampleNativeModuleProvider.h` with the following: +5. Rename the `NativeSampleModuleProvider.m` to `NativeSampleModuleProvider.mm`. The `mm` extension denotes an Objective-C++ file. +6. Implement the content of the `NativeSampleModuleProvider.h` with the following: ```objc title="NativeSampleModuleProvider.h" @@ -353,7 +353,7 @@ NS_ASSUME_NONNULL_END This declares a `NativeSampleModuleProvider` object that conforms to the `RCTModuleProvider` protocol. -7. Implement the content of the `SampleNativeModuleProvider.mm` with the following: +7. Implement the content of the `NativeSampleModuleProvider.mm` with the following: ```objc title="NativeSampleModuleProvider.mm" diff --git a/website/versioned_docs/version-0.83/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.83/the-new-architecture/pure-cxx-modules.md index 2a259ff04a9..37fa505e53f 100644 --- a/website/versioned_docs/version-0.83/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.83/the-new-architecture/pure-cxx-modules.md @@ -333,10 +333,10 @@ The ModuleProvider is an Objective-C++ that glues together the Pure C++ module w 1. From Xcode, select the `SampleApp` project and press + N to create a new file. 2. Select the `Cocoa Touch Class` template -3. Add the name `SampleNativeModuleProvider` (keep the other field as `Subclass of: NSObject` and `Language: Objective-C`) +3. Add the name `NativeSampleModuleProvider` (keep the other field as `Subclass of: NSObject` and `Language: Objective-C`) 4. Click Next to generate the files. -5. Rename the `SampleNativeModuleProvider.m` to `SampleNativeModuleProvider.mm`. The `mm` extension denotes an Objective-C++ file. -6. Implement the content of the `SampleNativeModuleProvider.h` with the following: +5. Rename the `NativeSampleModuleProvider.m` to `NativeSampleModuleProvider.mm`. The `mm` extension denotes an Objective-C++ file. +6. Implement the content of the `NativeSampleModuleProvider.h` with the following: ```objc title="NativeSampleModuleProvider.h" @@ -354,7 +354,7 @@ NS_ASSUME_NONNULL_END This declares a `NativeSampleModuleProvider` object that conforms to the `RCTModuleProvider` protocol. -7. Implement the content of the `SampleNativeModuleProvider.mm` with the following: +7. Implement the content of the `NativeSampleModuleProvider.mm` with the following: ```objc title="NativeSampleModuleProvider.mm"