diff --git a/packages/create-react-native-library/templates/cpp-library/android/cpp-adapter.cpp b/packages/create-react-native-library/templates/cpp-library/android/cpp-adapter.cpp index fb4fd7183..4b8479f96 100644 --- a/packages/create-react-native-library/templates/cpp-library/android/cpp-adapter.cpp +++ b/packages/create-react-native-library/templates/cpp-library/android/cpp-adapter.cpp @@ -3,6 +3,6 @@ extern "C" JNIEXPORT jint JNICALL -Java_com_<%- project.package -%>_<%- project.name -%>Module_nativeMultiply(JNIEnv *env, jclass type, jint a, jint b) { +Java_com_<%- project.package -%>_<%- project.name -%>Module_nativeMultiply(JNIEnv *env, jclass type, jdouble a, jdouble b) { return example::multiply(a, b); }