Skip to content

Commit 3a7ecf4

Browse files
authored
Rename SampleNativeModuleProvider to NativeSampleModuleProvider
1 parent 78fe1b3 commit 3a7ecf4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/the-new-architecture/pure-cxx-modules.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -333,10 +333,10 @@ The ModuleProvider is an Objective-C++ that glues together the Pure C++ module w
333333

334334
1. From Xcode, select the `SampleApp` project and press <kbd>⌘</kbd> + <kbd>N</kbd> to create a new file.
335335
2. Select the `Cocoa Touch Class` template
336-
3. Add the name `SampleNativeModuleProvider` (keep the other field as `Subclass of: NSObject` and `Language: Objective-C`)
336+
3. Add the name `NativeSampleModuleProvider` (keep the other field as `Subclass of: NSObject` and `Language: Objective-C`)
337337
4. Click Next to generate the files.
338-
5. Rename the `SampleNativeModuleProvider.m` to `SampleNativeModuleProvider.mm`. The `mm` extension denotes an Objective-C++ file.
339-
6. Implement the content of the `SampleNativeModuleProvider.h` with the following:
338+
5. Rename the `NativeSampleModuleProvider.m` to `NativeSampleModuleProvider.mm`. The `mm` extension denotes an Objective-C++ file.
339+
6. Implement the content of the `NativeSampleModuleProvider.h` with the following:
340340

341341
```objc title="NativeSampleModuleProvider.h"
342342

@@ -354,7 +354,7 @@ NS_ASSUME_NONNULL_END
354354

355355
This declares a `NativeSampleModuleProvider` object that conforms to the `RCTModuleProvider` protocol.
356356

357-
7. Implement the content of the `SampleNativeModuleProvider.mm` with the following:
357+
7. Implement the content of the `NativeSampleModuleProvider.mm` with the following:
358358

359359
```objc title="NativeSampleModuleProvider.mm"
360360

0 commit comments

Comments
 (0)