mirror of
https://github.com/zoriya/react-native-video.git
synced 2026-05-28 08:58:50 +00:00
feat: bump nitro modules version (#4641)
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
diff --git a/node_modules/react-native-nitro-modules/cpp/core/HybridFunction.hpp b/node_modules/react-native-nitro-modules/cpp/core/HybridFunction.hpp
|
||||
index aefd987..c2e06fb 100644
|
||||
--- a/node_modules/react-native-nitro-modules/cpp/core/HybridFunction.hpp
|
||||
+++ b/node_modules/react-native-nitro-modules/cpp/core/HybridFunction.hpp
|
||||
@@ -23,6 +23,10 @@ struct JSIConverter;
|
||||
#include <string>
|
||||
#include <type_traits>
|
||||
|
||||
+#ifdef ANDROID
|
||||
+#include <fbjni/fbjni.h>
|
||||
+#endif
|
||||
+
|
||||
namespace margelo::nitro {
|
||||
|
||||
using namespace facebook;
|
||||
@@ -118,6 +122,10 @@ public:
|
||||
std::string funcName = getHybridFuncFullName<THybrid>(kind, name, hybridInstance.get());
|
||||
std::string message = exception.what();
|
||||
throw jsi::JSError(runtime, funcName + ": " + message);
|
||||
+ } catch (const jni::JniException& exception) {
|
||||
+ std::string funcName = getHybridFuncFullName<THybrid>(kind, name, hybridInstance.get());
|
||||
+ std::string message = exception.what();
|
||||
+ throw jsi::JSError(runtime, funcName + ": " + message);
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
} catch (...) {
|
||||
Reference in New Issue
Block a user