Skip to content

Commit

Permalink
rn-tester > Use code-generate Turbo Module constants
Browse files Browse the repository at this point in the history
Summary:
Continuation of facebook#38295

Changelog:
[Internal] [Changed] - rn-tester > Use code-generate Turbo Module constants

Differential Revision: D47376344

fbshipit-source-id: c84010ae697e07379ac1fcd476828db362afb76e
  • Loading branch information
christophpurrer authored and facebook-github-bot committed Jul 11, 2023
1 parent 6aef3bf commit 13b786b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/rn-tester/RNTester/AppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ - (void)loadSourceForBridge:(RCTBridge *)bridge
return std::make_shared<facebook::react::SampleTurboCxxModule>(jsInvoker);
}
#ifdef RCT_NEW_ARCH_ENABLED
if (name == std::string([@"NativeCxxModuleExampleCxx" UTF8String])) {
if (name == NativeCxxModuleExample::kModuleName) {
return std::make_shared<facebook::react::NativeCxxModuleExample>(jsInvoker);
}
#endif
Expand Down
2 changes: 1 addition & 1 deletion packages/rn-tester/android/app/src/main/jni/OnLoad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void registerComponents(
std::shared_ptr<TurboModule> cxxModuleProvider(
const std::string &name,
const std::shared_ptr<CallInvoker> &jsInvoker) {
if (name == "NativeCxxModuleExampleCxx") {
if (name == NativeCxxModuleExample::kModuleName) {
return std::make_shared<NativeCxxModuleExample>(jsInvoker);
}
return nullptr;
Expand Down

0 comments on commit 13b786b

Please sign in to comment.