Skip to content

Commit 2c572dd

Browse files
committed
fix: fix types in cpp adapter. closes #278
1 parent 8d5e09f commit 2c572dd

File tree

1 file changed

+1
-1
lines changed
  • packages/create-react-native-library/templates/cpp-library/android

1 file changed

+1
-1
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
@@ -3,6 +3,6 @@
33

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

0 commit comments

Comments
 (0)