Home
last modified time | relevance | path

Searched refs:toJSValue (Results 1 – 21 of 21) sorted by relevance

/expo/packages/expo-modules-core/android/src/main/java/expo/modules/kotlin/types/
H A DJSTypeConverter.kt27 is Bundle -> value.toJSValue(containerProvider) in convertToJSValue()
29 is Array<*> -> value.toJSValue(containerProvider) in convertToJSValue()
30 is IntArray -> value.toJSValue(containerProvider) in convertToJSValue()
31 is FloatArray -> value.toJSValue(containerProvider) in convertToJSValue()
34 is Map<*, *> -> value.toJSValue(containerProvider) in convertToJSValue()
35 is Enum<*> -> value.toJSValue() in convertToJSValue()
36 is Record -> value.toJSValue(containerProvider) in convertToJSValue()
37 is URI -> value.toJSValue() in convertToJSValue()
38 is URL -> value.toJSValue() in convertToJSValue()
39 is Uri -> value.toJSValue() in convertToJSValue()
[all …]
H A DJSTypeConverterHelper.kt21 fun Record.toJSValue(containerProvider: JSTypeConverter.ContainerProvider): WritableMap { in <lambda>() method
40 fun Bundle.toJSValue(containerProvider: JSTypeConverter.ContainerProvider): WritableMap { in toJSValue() method
85 fun IntArray.toJSValue(containerProvider: JSTypeConverter.ContainerProvider): WritableArray { in toJSValue() method
93 fun FloatArray.toJSValue(containerProvider: JSTypeConverter.ContainerProvider): WritableArray { in toJSValue() method
101 fun DoubleArray.toJSValue(containerProvider: JSTypeConverter.ContainerProvider): WritableArray { in toJSValue() method
117 fun Enum<*>.toJSValue(): Any? { in Enum() method
137 fun URL.toJSValue(): String { in toJSValue() method
141 fun Uri.toJSValue(): String { in toJSValue() method
145 fun URI.toJSValue(): String { in toJSValue() method
149 fun File.toJSValue(): String { in toJSValue() method
[all …]
/expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/expo/modules/kotlin/types/
H A DJSTypeConverter.kt27 is Bundle -> value.toJSValue(containerProvider) in convertToJSValue()
29 is Array<*> -> value.toJSValue(containerProvider) in convertToJSValue()
30 is IntArray -> value.toJSValue(containerProvider) in convertToJSValue()
31 is FloatArray -> value.toJSValue(containerProvider) in convertToJSValue()
34 is Map<*, *> -> value.toJSValue(containerProvider) in convertToJSValue()
35 is Enum<*> -> value.toJSValue() in convertToJSValue()
36 is Record -> value.toJSValue(containerProvider) in convertToJSValue()
37 is URI -> value.toJSValue() in convertToJSValue()
38 is URL -> value.toJSValue() in convertToJSValue()
39 is Uri -> value.toJSValue() in convertToJSValue()
[all …]
H A DJSTypeConverterHelper.kt21 fun Record.toJSValue(containerProvider: JSTypeConverter.ContainerProvider): WritableMap { in <lambda>() method
40 fun Bundle.toJSValue(containerProvider: JSTypeConverter.ContainerProvider): WritableMap { in toJSValue() method
85 fun IntArray.toJSValue(containerProvider: JSTypeConverter.ContainerProvider): WritableArray { in toJSValue() method
93 fun FloatArray.toJSValue(containerProvider: JSTypeConverter.ContainerProvider): WritableArray { in toJSValue() method
101 fun DoubleArray.toJSValue(containerProvider: JSTypeConverter.ContainerProvider): WritableArray { in toJSValue() method
117 fun Enum<*>.toJSValue(): Any? { in Enum() method
137 fun URL.toJSValue(): String { in toJSValue() method
141 fun Uri.toJSValue(): String { in toJSValue() method
145 fun URI.toJSValue(): String { in toJSValue() method
149 fun File.toJSValue(): String { in toJSValue() method
[all …]
/expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/expo/modules/kotlin/types/
H A DJSTypeConverter.kt27 is Bundle -> value.toJSValue(containerProvider) in convertToJSValue()
29 is Array<*> -> value.toJSValue(containerProvider) in convertToJSValue()
30 is IntArray -> value.toJSValue(containerProvider) in convertToJSValue()
31 is FloatArray -> value.toJSValue(containerProvider) in convertToJSValue()
34 is Map<*, *> -> value.toJSValue(containerProvider) in convertToJSValue()
35 is Enum<*> -> value.toJSValue() in convertToJSValue()
36 is Record -> value.toJSValue(containerProvider) in convertToJSValue()
37 is URI -> value.toJSValue() in convertToJSValue()
38 is URL -> value.toJSValue() in convertToJSValue()
39 is Uri -> value.toJSValue() in convertToJSValue()
[all …]
H A DJSTypeConverterHelper.kt21 fun Record.toJSValue(containerProvider: JSTypeConverter.ContainerProvider): WritableMap { in <lambda>() method
40 fun Bundle.toJSValue(containerProvider: JSTypeConverter.ContainerProvider): WritableMap { in toJSValue() method
85 fun IntArray.toJSValue(containerProvider: JSTypeConverter.ContainerProvider): WritableArray { in toJSValue() method
93 fun FloatArray.toJSValue(containerProvider: JSTypeConverter.ContainerProvider): WritableArray { in toJSValue() method
101 fun DoubleArray.toJSValue(containerProvider: JSTypeConverter.ContainerProvider): WritableArray { in toJSValue() method
117 fun Enum<*>.toJSValue(): Any? { in Enum() method
137 fun URL.toJSValue(): String { in toJSValue() method
141 fun Uri.toJSValue(): String { in toJSValue() method
145 fun URI.toJSValue(): String { in toJSValue() method
149 fun File.toJSValue(): String { in toJSValue() method
[all …]
/expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/expo/modules/kotlin/types/
H A DJSTypeConverter.kt27 is Bundle -> value.toJSValue(containerProvider) in convertToJSValue()
29 is Array<*> -> value.toJSValue(containerProvider) in convertToJSValue()
30 is IntArray -> value.toJSValue(containerProvider) in convertToJSValue()
31 is FloatArray -> value.toJSValue(containerProvider) in convertToJSValue()
34 is Map<*, *> -> value.toJSValue(containerProvider) in convertToJSValue()
35 is Enum<*> -> value.toJSValue() in convertToJSValue()
36 is Record -> value.toJSValue(containerProvider) in convertToJSValue()
37 is URI -> value.toJSValue() in convertToJSValue()
38 is URL -> value.toJSValue() in convertToJSValue()
39 is Uri -> value.toJSValue() in convertToJSValue()
[all …]
H A DJSTypeConverterHelper.kt21 fun Record.toJSValue(containerProvider: JSTypeConverter.ContainerProvider): WritableMap { in <lambda>() method
40 fun Bundle.toJSValue(containerProvider: JSTypeConverter.ContainerProvider): WritableMap { in toJSValue() method
85 fun IntArray.toJSValue(containerProvider: JSTypeConverter.ContainerProvider): WritableArray { in toJSValue() method
93 fun FloatArray.toJSValue(containerProvider: JSTypeConverter.ContainerProvider): WritableArray { in toJSValue() method
101 fun DoubleArray.toJSValue(containerProvider: JSTypeConverter.ContainerProvider): WritableArray { in toJSValue() method
117 fun Enum<*>.toJSValue(): Any? { in Enum() method
137 fun URL.toJSValue(): String { in toJSValue() method
141 fun Uri.toJSValue(): String { in toJSValue() method
145 fun URI.toJSValue(): String { in toJSValue() method
149 fun File.toJSValue(): String { in toJSValue() method
[all …]
/expo/packages/expo-modules-core/android/src/test/java/expo/modules/kotlin/types/
H A DEnumSerializerTest.kt29 Truth.assertThat(v1.toJSValue()).isEqualTo("VALUE1") in should convert enum without parameter to string()
30 Truth.assertThat(v2.toJSValue()).isEqualTo("VALUE2") in should convert enum without parameter to string()
31 Truth.assertThat(v3.toJSValue()).isEqualTo("VALUE3") in should convert enum without parameter to string()
40 Truth.assertThat(v1.toJSValue()).isEqualTo(1) in should convert enum with int parameter to int()
41 Truth.assertThat(v2.toJSValue()).isEqualTo(2) in should convert enum with int parameter to int()
42 Truth.assertThat(v3.toJSValue()).isEqualTo(3) in should convert enum with int parameter to int()
51 Truth.assertThat(v1.toJSValue()).isEqualTo("value1") in should convert enum with string parameter to string()
52 Truth.assertThat(v2.toJSValue()).isEqualTo("value2") in should convert enum with string parameter to string()
53 Truth.assertThat(v3.toJSValue()).isEqualTo("value3") in should convert enum with string parameter to string()
58 IncompatibleEnum.SOME_VALUE.toJSValue() in should throw when enum is incompatible with JS()
/expo/ios/vendored/sdk49/react-native-reanimated/Common/cpp/SharedItems/
H A DShareables.h99 virtual jsi::Value toJSValue(jsi::Runtime &rt) = 0;
124 return toJSValue(rt); in getJSValue()
157 return BaseClass::toJSValue(rt); in getJSValue()
159 auto value = BaseClass::toJSValue(rt); in getJSValue()
233 jsi::Value toJSValue(jsi::Runtime &rt) override { in toJSValue() function
249 jsi::Value toJSValue(jsi::Runtime &rt) override { in toJSValue() function
269 jsi::Value toJSValue(jsi::Runtime &rt) override { in toJSValue() function
287 jsi::Value toJSValue(jsi::Runtime &rt) override { in toJSValue() function
310 jsi::Value toJSValue(jsi::Runtime &rt) override { in toJSValue() function
331 jsi::Value toJSValue(jsi::Runtime &rt) override { in toJSValue() function
[all …]
/expo/android/vendored/unversioned/react-native-reanimated/Common/cpp/SharedItems/
H A DShareables.h99 virtual jsi::Value toJSValue(jsi::Runtime &rt) = 0;
124 return toJSValue(rt); in getJSValue()
157 return BaseClass::toJSValue(rt); in getJSValue()
159 auto value = BaseClass::toJSValue(rt); in getJSValue()
233 jsi::Value toJSValue(jsi::Runtime &rt) override { in toJSValue() function
249 jsi::Value toJSValue(jsi::Runtime &rt) override { in toJSValue() function
269 jsi::Value toJSValue(jsi::Runtime &rt) override { in toJSValue() function
287 jsi::Value toJSValue(jsi::Runtime &rt) override { in toJSValue() function
310 jsi::Value toJSValue(jsi::Runtime &rt) override { in toJSValue() function
331 jsi::Value toJSValue(jsi::Runtime &rt) override { in toJSValue() function
[all …]
/expo/android/vendored/sdk49/react-native-reanimated/Common/cpp/SharedItems/
H A DShareables.h99 virtual jsi::Value toJSValue(jsi::Runtime &rt) = 0;
124 return toJSValue(rt); in getJSValue()
157 return BaseClass::toJSValue(rt); in getJSValue()
159 auto value = BaseClass::toJSValue(rt); in getJSValue()
233 jsi::Value toJSValue(jsi::Runtime &rt) override { in toJSValue() function
249 jsi::Value toJSValue(jsi::Runtime &rt) override { in toJSValue() function
269 jsi::Value toJSValue(jsi::Runtime &rt) override { in toJSValue() function
287 jsi::Value toJSValue(jsi::Runtime &rt) override { in toJSValue() function
310 jsi::Value toJSValue(jsi::Runtime &rt) override { in toJSValue() function
331 jsi::Value toJSValue(jsi::Runtime &rt) override { in toJSValue() function
[all …]
/expo/ios/vendored/unversioned/react-native-reanimated/Common/cpp/SharedItems/
H A DShareables.h99 virtual jsi::Value toJSValue(jsi::Runtime &rt) = 0;
124 return toJSValue(rt); in getJSValue()
157 return BaseClass::toJSValue(rt); in getJSValue()
159 auto value = BaseClass::toJSValue(rt); in getJSValue()
233 jsi::Value toJSValue(jsi::Runtime &rt) override { in toJSValue() function
249 jsi::Value toJSValue(jsi::Runtime &rt) override { in toJSValue() function
269 jsi::Value toJSValue(jsi::Runtime &rt) override { in toJSValue() function
287 jsi::Value toJSValue(jsi::Runtime &rt) override { in toJSValue() function
310 jsi::Value toJSValue(jsi::Runtime &rt) override { in toJSValue() function
331 jsi::Value toJSValue(jsi::Runtime &rt) override { in toJSValue() function
[all …]
/expo/android/vendored/sdk48/react-native-reanimated/Common/cpp/SharedItems/
H A DShareableValue.h45 jsi::Value toJSValue(jsi::Runtime &rt);
H A DShareableValue.cpp212 (*remoteValue.lock()) = toJSValue(rt); in getValue()
219 hostValue = std::make_unique<jsi::Value>(toJSValue(rt)); in getValue()
247 jsi::Value ShareableValue::toJSValue(jsi::Runtime &rt) { in toJSValue() function in reanimated::ShareableValue
269 array.setValueAtIndex(rt, i, frozenArray[i]->toJSValue(rt)); in toJSValue()
/expo/ios/vendored/sdk47/react-native-reanimated/Common/cpp/SharedItems/
H A DShareableValue.h45 jsi::Value toJSValue(jsi::Runtime &rt);
H A DShareableValue.cpp212 (*remoteValue.lock()) = toJSValue(rt); in getValue()
219 hostValue = std::make_unique<jsi::Value>(toJSValue(rt)); in getValue()
247 jsi::Value ShareableValue::toJSValue(jsi::Runtime &rt) { in toJSValue() function in ABI47_0_0reanimated::ShareableValue
269 array.setValueAtIndex(rt, i, frozenArray[i]->toJSValue(rt)); in toJSValue()
/expo/android/vendored/sdk47/react-native-reanimated/Common/cpp/SharedItems/
H A DShareableValue.h45 jsi::Value toJSValue(jsi::Runtime &rt);
H A DShareableValue.cpp212 (*remoteValue.lock()) = toJSValue(rt); in getValue()
219 hostValue = std::make_unique<jsi::Value>(toJSValue(rt)); in getValue()
247 jsi::Value ShareableValue::toJSValue(jsi::Runtime &rt) { in toJSValue() function in reanimated::ShareableValue
269 array.setValueAtIndex(rt, i, frozenArray[i]->toJSValue(rt)); in toJSValue()
/expo/ios/vendored/sdk48/react-native-reanimated/Common/cpp/SharedItems/
H A DShareableValue.h45 jsi::Value toJSValue(jsi::Runtime &rt);
H A DShareableValue.cpp212 (*remoteValue.lock()) = toJSValue(rt); in getValue()
219 hostValue = std::make_unique<jsi::Value>(toJSValue(rt)); in getValue()
247 jsi::Value ShareableValue::toJSValue(jsi::Runtime &rt) { in toJSValue() function in ABI48_0_0reanimated::ShareableValue
269 array.setValueAtIndex(rt, i, frozenArray[i]->toJSValue(rt)); in toJSValue()