Skip to content

Commit 02f989c

Browse files
committed
Fix build error
constexpr variable 'kModuleName' must be initialized by a constant expression
1 parent 8112931 commit 02f989c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native-node-api-modules/cpp/CxxNodeApiHostModule.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace callstack::nodeapihost {
1010

1111
class JSI_EXPORT CxxNodeApiHostModule : public facebook::react::TurboModule {
1212
public:
13-
static constexpr std::string kModuleName = "NodeApiHost";
13+
static constexpr const char *kModuleName = "NodeApiHost";
1414

1515
CxxNodeApiHostModule(std::shared_ptr<facebook::react::CallInvoker> jsInvoker);
1616

0 commit comments

Comments
 (0)