Skip to content

Commit 6835400

Browse files
committed
fix: use correct return type for cpp project. closes #343
1 parent 03e8121 commit 6835400

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/cpp-adapter.cpp

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

44
extern "C"
5-
JNIEXPORT jint JNICALL
5+
JNIEXPORT jdouble JNICALL
66
Java_com_<%- project.package_cpp -%>_<%- project.name -%>Module_nativeMultiply(JNIEnv *env, jclass type, jdouble a, jdouble b) {
77
return <%- project.package_cpp -%>::multiply(a, b);
88
}

packages/create-react-native-library/templates/cpp-view-mixed/android/registration.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ void registerProviders() {
1515
JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *) {
1616
facebook::react::registerProviders();
1717
return JNI_VERSION_1_6;
18-
}
18+
}

packages/create-react-native-library/templates/cpp-view-new/android/registration.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ void registerProviders() {
1515
JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *) {
1616
facebook::react::registerProviders();
1717
return JNI_VERSION_1_6;
18-
}
18+
}

0 commit comments

Comments
 (0)