From 2c572dd9b8eac5a494ed3c39dc7f1f453d08c7ed Mon Sep 17 00:00:00 2001 From: Satyajit Sahoo Date: Fri, 16 Sep 2022 16:10:05 +0200 Subject: [PATCH] fix: fix types in cpp adapter. closes #278 --- .../templates/cpp-library/android/cpp-adapter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }