react-native-nitro-modules 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NitroModules.podspec +3 -1
- package/android/src/main/cpp/platform/ThreadUtils.cpp +5 -0
- package/cpp/core/AnyMap.hpp +2 -1
- package/cpp/core/ArrayBuffer.hpp +108 -16
- package/cpp/core/HybridObject.hpp +3 -4
- package/cpp/jsi/JSIConverter+AnyMap.hpp +64 -0
- package/cpp/jsi/JSIConverter+ArrayBuffer.hpp +50 -0
- package/cpp/jsi/JSIConverter+Function.hpp +124 -0
- package/cpp/jsi/JSIConverter+HybridObject.hpp +130 -0
- package/cpp/jsi/JSIConverter+Optional.hpp +41 -0
- package/cpp/jsi/JSIConverter+Promise.hpp +87 -0
- package/cpp/jsi/JSIConverter+Tuple.hpp +60 -0
- package/cpp/jsi/JSIConverter+UnorderedMap.hpp +50 -0
- package/cpp/jsi/JSIConverter+Variant.hpp +97 -0
- package/cpp/jsi/JSIConverter+Vector.hpp +48 -0
- package/cpp/jsi/JSIConverter.hpp +22 -498
- package/cpp/platform/ThreadUtils.hpp +6 -0
- package/cpp/templates/IsSharedPtrTo.hpp +28 -0
- package/cpp/threading/ThreadPool.cpp +84 -0
- package/cpp/threading/ThreadPool.hpp +53 -0
- package/ios/core/HybridContext.cpp +8 -0
- package/{cpp → ios}/core/HybridContext.hpp +6 -3
- package/ios/platform/ThreadUtils.cpp +4 -0
- package/lib/NativeNitroModules.d.ts +5 -0
- package/lib/NativeNitroModules.js +5 -0
- package/lib/NativeNitroModules.web.d.ts +4 -0
- package/lib/NativeNitroModules.web.js +3 -0
- package/lib/commonjs/NativeNitroModules.js +6 -0
- package/lib/commonjs/NativeNitroModules.js.map +1 -1
- package/lib/commonjs/NativeNitroModules.web.js +10 -0
- package/lib/commonjs/NativeNitroModules.web.js.map +1 -0
- package/lib/module/NativeNitroModules.js +5 -0
- package/lib/module/NativeNitroModules.js.map +1 -1
- package/lib/module/NativeNitroModules.web.js +4 -0
- package/lib/module/NativeNitroModules.web.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/NativeNitroModules.ts +11 -0
- package/src/NativeNitroModules.web.ts +9 -0
- package/cpp/templates/IsHostObject.hpp +0 -27
- package/cpp/templates/IsNativeState.hpp +0 -27
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// BorrowingReference.hpp
|
|
3
|
-
// NitroModules
|
|
4
|
-
//
|
|
5
|
-
// Created by Marc Rousavy on 21.06.24.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
#pragma once
|
|
9
|
-
|
|
10
|
-
#include <jsi/jsi.h>
|
|
11
|
-
#include <type_traits>
|
|
12
|
-
|
|
13
|
-
namespace margelo::nitro {
|
|
14
|
-
|
|
15
|
-
using namespace facebook;
|
|
16
|
-
|
|
17
|
-
// Returns whether the given type `T` is a `shared_ptr` to a `NativeStaet`
|
|
18
|
-
template <typename T>
|
|
19
|
-
struct is_shared_ptr_to_native_state : std::false_type {};
|
|
20
|
-
|
|
21
|
-
template <typename T>
|
|
22
|
-
struct is_shared_ptr_to_native_state<std::shared_ptr<T>> : std::is_base_of<jsi::NativeState, T> {};
|
|
23
|
-
|
|
24
|
-
template <typename T>
|
|
25
|
-
inline constexpr bool is_shared_ptr_to_native_state_v = is_shared_ptr_to_native_state<std::remove_reference_t<T>>::value;
|
|
26
|
-
|
|
27
|
-
} // namespace margelo::nitro
|