Skip to content

Commit 15a82b0

Browse files
authored
fix: fix cpp template (#203)
1 parent 7409f5e commit 15a82b0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/create-react-native-library/templates/cpp-library/android/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set (CMAKE_CXX_STANDARD 11)
55

66
add_library(cpp
77
SHARED
8-
../cpp/example.cpp
8+
../cpp/<%- project.identifier %>.cpp
99
cpp-adapter.cpp
1010
)
1111

packages/create-react-native-library/templates/cpp-library/cpp/{%- project.identifier %}.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "example.h"
1+
#include "<%- project.identifier %>.h"
22

33
namespace example {
44
int multiply(float a, float b) {

packages/create-react-native-library/templates/cpp-library/ios/{%- project.name %}.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#ifdef __cplusplus
44

5-
#import "example.h"
5+
#import "<%- project.identifier %>.h"
66

77
#endif
88

0 commit comments

Comments
 (0)