@onekeyfe/react-native-chart-webview 3.0.81 → 3.0.85
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/lib/nitrogen/generated/android/c++/JFunc_void.hpp +3 -3
- package/lib/nitrogen/generated/android/c++/JFunc_void_std__string.hpp +3 -3
- package/lib/nitrogen/generated/android/c++/JHybridChartWebviewSpec.cpp +49 -48
- package/lib/nitrogen/generated/android/c++/JHybridChartWebviewSpec.hpp +20 -22
- package/lib/nitrogen/generated/android/c++/views/JHybridChartWebviewStateUpdater.cpp +53 -53
- package/lib/nitrogen/generated/android/c++/views/JHybridChartWebviewStateUpdater.hpp +4 -4
- package/lib/nitrogen/generated/android/chartwebview+autolinking.cmake +1 -1
- package/lib/nitrogen/generated/android/chartwebview+autolinking.gradle +1 -1
- package/lib/nitrogen/generated/android/chartwebviewOnLoad.cpp +30 -20
- package/lib/nitrogen/generated/android/chartwebviewOnLoad.hpp +14 -5
- package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/chartwebview/Func_void.kt +1 -1
- package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/chartwebview/Func_void_std__string.kt +1 -1
- package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/chartwebview/HybridChartWebviewSpec.kt +17 -19
- package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/chartwebview/chartwebviewOnLoad.kt +1 -1
- package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/chartwebview/views/HybridChartWebviewManager.kt +40 -10
- package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/chartwebview/views/HybridChartWebviewStateUpdater.kt +1 -1
- package/lib/nitrogen/generated/ios/ChartWebview+autolinking.rb +2 -2
- package/lib/nitrogen/generated/ios/ChartWebview-Swift-Cxx-Bridge.cpp +1 -1
- package/lib/nitrogen/generated/ios/ChartWebview-Swift-Cxx-Bridge.hpp +5 -5
- package/lib/nitrogen/generated/ios/ChartWebview-Swift-Cxx-Umbrella.hpp +1 -1
- package/lib/nitrogen/generated/ios/ChartWebviewAutolinking.mm +1 -1
- package/lib/nitrogen/generated/ios/ChartWebviewAutolinking.swift +9 -8
- package/lib/nitrogen/generated/ios/c++/HybridChartWebviewSpecSwift.cpp +1 -1
- package/lib/nitrogen/generated/ios/c++/HybridChartWebviewSpecSwift.hpp +7 -1
- package/lib/nitrogen/generated/ios/c++/views/HybridChartWebviewComponent.mm +27 -1
- package/lib/nitrogen/generated/ios/swift/Func_void.swift +1 -2
- package/lib/nitrogen/generated/ios/swift/Func_void_std__string.swift +1 -2
- package/lib/nitrogen/generated/ios/swift/HybridChartWebviewSpec.swift +3 -4
- package/lib/nitrogen/generated/ios/swift/HybridChartWebviewSpec_cxx.swift +18 -2
- package/lib/nitrogen/generated/shared/c++/HybridChartWebviewSpec.cpp +1 -1
- package/lib/nitrogen/generated/shared/c++/HybridChartWebviewSpec.hpp +1 -1
- package/lib/nitrogen/generated/shared/c++/views/HybridChartWebviewComponent.cpp +10 -26
- package/lib/nitrogen/generated/shared/c++/views/HybridChartWebviewComponent.hpp +9 -6
- package/lib/nitrogen/nitrogen/generated/android/c++/JFunc_void.hpp +3 -3
- package/lib/nitrogen/nitrogen/generated/android/c++/JFunc_void_std__string.hpp +3 -3
- package/lib/nitrogen/nitrogen/generated/android/c++/JHybridChartWebviewSpec.cpp +49 -48
- package/lib/nitrogen/nitrogen/generated/android/c++/JHybridChartWebviewSpec.hpp +20 -22
- package/lib/nitrogen/nitrogen/generated/android/c++/views/JHybridChartWebviewStateUpdater.cpp +53 -53
- package/lib/nitrogen/nitrogen/generated/android/c++/views/JHybridChartWebviewStateUpdater.hpp +4 -4
- package/lib/nitrogen/nitrogen/generated/android/chartwebview+autolinking.cmake +1 -1
- package/lib/nitrogen/nitrogen/generated/android/chartwebview+autolinking.gradle +1 -1
- package/lib/nitrogen/nitrogen/generated/android/chartwebviewOnLoad.cpp +30 -20
- package/lib/nitrogen/nitrogen/generated/android/chartwebviewOnLoad.hpp +14 -5
- package/lib/nitrogen/nitrogen/generated/android/kotlin/com/margelo/nitro/chartwebview/Func_void.kt +1 -1
- package/lib/nitrogen/nitrogen/generated/android/kotlin/com/margelo/nitro/chartwebview/Func_void_std__string.kt +1 -1
- package/lib/nitrogen/nitrogen/generated/android/kotlin/com/margelo/nitro/chartwebview/HybridChartWebviewSpec.kt +17 -19
- package/lib/nitrogen/nitrogen/generated/android/kotlin/com/margelo/nitro/chartwebview/chartwebviewOnLoad.kt +1 -1
- package/lib/nitrogen/nitrogen/generated/android/kotlin/com/margelo/nitro/chartwebview/views/HybridChartWebviewManager.kt +40 -10
- package/lib/nitrogen/nitrogen/generated/android/kotlin/com/margelo/nitro/chartwebview/views/HybridChartWebviewStateUpdater.kt +1 -1
- package/lib/nitrogen/nitrogen/generated/ios/ChartWebview+autolinking.rb +2 -2
- package/lib/nitrogen/nitrogen/generated/ios/ChartWebview-Swift-Cxx-Bridge.cpp +1 -1
- package/lib/nitrogen/nitrogen/generated/ios/ChartWebview-Swift-Cxx-Bridge.hpp +5 -5
- package/lib/nitrogen/nitrogen/generated/ios/ChartWebview-Swift-Cxx-Umbrella.hpp +1 -1
- package/lib/nitrogen/nitrogen/generated/ios/ChartWebviewAutolinking.mm +1 -1
- package/lib/nitrogen/nitrogen/generated/ios/ChartWebviewAutolinking.swift +9 -8
- package/lib/nitrogen/nitrogen/generated/ios/c++/HybridChartWebviewSpecSwift.cpp +1 -1
- package/lib/nitrogen/nitrogen/generated/ios/c++/HybridChartWebviewSpecSwift.hpp +7 -1
- package/lib/nitrogen/nitrogen/generated/ios/c++/views/HybridChartWebviewComponent.mm +27 -1
- package/lib/nitrogen/nitrogen/generated/ios/swift/Func_void.swift +1 -2
- package/lib/nitrogen/nitrogen/generated/ios/swift/Func_void_std__string.swift +1 -2
- package/lib/nitrogen/nitrogen/generated/ios/swift/HybridChartWebviewSpec.swift +3 -4
- package/lib/nitrogen/nitrogen/generated/ios/swift/HybridChartWebviewSpec_cxx.swift +18 -2
- package/lib/nitrogen/nitrogen/generated/shared/c++/HybridChartWebviewSpec.cpp +1 -1
- package/lib/nitrogen/nitrogen/generated/shared/c++/HybridChartWebviewSpec.hpp +1 -1
- package/lib/nitrogen/nitrogen/generated/shared/c++/views/HybridChartWebviewComponent.cpp +10 -26
- package/lib/nitrogen/nitrogen/generated/shared/c++/views/HybridChartWebviewComponent.hpp +9 -6
- package/nitrogen/generated/android/c++/JFunc_void.hpp +3 -3
- package/nitrogen/generated/android/c++/JFunc_void_std__string.hpp +3 -3
- package/nitrogen/generated/android/c++/JHybridChartWebviewSpec.cpp +49 -48
- package/nitrogen/generated/android/c++/JHybridChartWebviewSpec.hpp +20 -22
- package/nitrogen/generated/android/c++/views/JHybridChartWebviewStateUpdater.cpp +53 -53
- package/nitrogen/generated/android/c++/views/JHybridChartWebviewStateUpdater.hpp +4 -4
- package/nitrogen/generated/android/chartwebview+autolinking.cmake +1 -1
- package/nitrogen/generated/android/chartwebview+autolinking.gradle +1 -1
- package/nitrogen/generated/android/chartwebviewOnLoad.cpp +30 -20
- package/nitrogen/generated/android/chartwebviewOnLoad.hpp +14 -5
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/chartwebview/Func_void.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/chartwebview/Func_void_std__string.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/chartwebview/HybridChartWebviewSpec.kt +17 -19
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/chartwebview/chartwebviewOnLoad.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/chartwebview/views/HybridChartWebviewManager.kt +40 -10
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/chartwebview/views/HybridChartWebviewStateUpdater.kt +1 -1
- package/nitrogen/generated/ios/ChartWebview+autolinking.rb +2 -2
- package/nitrogen/generated/ios/ChartWebview-Swift-Cxx-Bridge.cpp +1 -1
- package/nitrogen/generated/ios/ChartWebview-Swift-Cxx-Bridge.hpp +5 -5
- package/nitrogen/generated/ios/ChartWebview-Swift-Cxx-Umbrella.hpp +1 -1
- package/nitrogen/generated/ios/ChartWebviewAutolinking.mm +1 -1
- package/nitrogen/generated/ios/ChartWebviewAutolinking.swift +9 -8
- package/nitrogen/generated/ios/c++/HybridChartWebviewSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridChartWebviewSpecSwift.hpp +7 -1
- package/nitrogen/generated/ios/c++/views/HybridChartWebviewComponent.mm +27 -1
- package/nitrogen/generated/ios/swift/Func_void.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__string.swift +1 -2
- package/nitrogen/generated/ios/swift/HybridChartWebviewSpec.swift +3 -4
- package/nitrogen/generated/ios/swift/HybridChartWebviewSpec_cxx.swift +18 -2
- package/nitrogen/generated/shared/c++/HybridChartWebviewSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridChartWebviewSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/views/HybridChartWebviewComponent.cpp +10 -26
- package/nitrogen/generated/shared/c++/views/HybridChartWebviewComponent.hpp +9 -6
- package/package.json +5 -5
|
@@ -2,24 +2,33 @@
|
|
|
2
2
|
/// chartwebviewOnLoad.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include <jni.h>
|
|
9
|
+
#include <functional>
|
|
9
10
|
#include <NitroModules/NitroDefines.hpp>
|
|
10
11
|
|
|
11
12
|
namespace margelo::nitro::chartwebview {
|
|
12
13
|
|
|
14
|
+
[[deprecated("Use registerNatives() instead.")]]
|
|
15
|
+
int initialize(JavaVM* vm);
|
|
16
|
+
|
|
13
17
|
/**
|
|
14
|
-
*
|
|
15
|
-
* Call this in your `JNI_OnLoad` function (probably inside `cpp-adapter.cpp`)
|
|
18
|
+
* Register the native (C++) part of chartwebview, and autolinks all Hybrid Objects.
|
|
19
|
+
* Call this in your `JNI_OnLoad` function (probably inside `cpp-adapter.cpp`),
|
|
20
|
+
* inside a `facebook::jni::initialize(vm, ...)` call.
|
|
16
21
|
* Example:
|
|
17
22
|
* ```cpp (cpp-adapter.cpp)
|
|
18
23
|
* JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void*) {
|
|
19
|
-
* return
|
|
24
|
+
* return facebook::jni::initialize(vm, []() {
|
|
25
|
+
* // register all chartwebview HybridObjects
|
|
26
|
+
* margelo::nitro::chartwebview::registerNatives();
|
|
27
|
+
* // any other custom registrations go here.
|
|
28
|
+
* });
|
|
20
29
|
* }
|
|
21
30
|
* ```
|
|
22
31
|
*/
|
|
23
|
-
|
|
32
|
+
void registerAllNatives();
|
|
24
33
|
|
|
25
34
|
} // namespace margelo::nitro::chartwebview
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// Func_void_std__string.kt
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
package com.margelo.nitro.chartwebview
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridChartWebviewSpec.kt
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
package com.margelo.nitro.chartwebview
|
|
@@ -10,6 +10,7 @@ package com.margelo.nitro.chartwebview
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.jni.HybridData
|
|
12
12
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
13
|
+
import com.margelo.nitro.core.HybridObject
|
|
13
14
|
import com.margelo.nitro.views.HybridView
|
|
14
15
|
|
|
15
16
|
/**
|
|
@@ -24,23 +25,6 @@ import com.margelo.nitro.views.HybridView
|
|
|
24
25
|
"LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName"
|
|
25
26
|
)
|
|
26
27
|
abstract class HybridChartWebviewSpec: HybridView() {
|
|
27
|
-
@DoNotStrip
|
|
28
|
-
private var mHybridData: HybridData = initHybrid()
|
|
29
|
-
|
|
30
|
-
init {
|
|
31
|
-
super.updateNative(mHybridData)
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
override fun updateNative(hybridData: HybridData) {
|
|
35
|
-
mHybridData = hybridData
|
|
36
|
-
super.updateNative(hybridData)
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// Default implementation of `HybridObject.toString()`
|
|
40
|
-
override fun toString(): String {
|
|
41
|
-
return "[HybridObject ChartWebview]"
|
|
42
|
-
}
|
|
43
|
-
|
|
44
28
|
// Properties
|
|
45
29
|
@get:DoNotStrip
|
|
46
30
|
@get:Keep
|
|
@@ -157,7 +141,21 @@ abstract class HybridChartWebviewSpec: HybridView() {
|
|
|
157
141
|
@Keep
|
|
158
142
|
abstract fun clearSnapshot(): Unit
|
|
159
143
|
|
|
160
|
-
|
|
144
|
+
// Default implementation of `HybridObject.toString()`
|
|
145
|
+
override fun toString(): String {
|
|
146
|
+
return "[HybridObject ChartWebview]"
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// C++ backing class
|
|
150
|
+
@DoNotStrip
|
|
151
|
+
@Keep
|
|
152
|
+
protected open class CxxPart(javaPart: HybridChartWebviewSpec): HybridObject.CxxPart(javaPart) {
|
|
153
|
+
// C++ JHybridChartWebviewSpec::CxxPart::initHybrid(...)
|
|
154
|
+
external override fun initHybrid(): HybridData
|
|
155
|
+
}
|
|
156
|
+
override fun createCxxPart(): CxxPart {
|
|
157
|
+
return CxxPart(this)
|
|
158
|
+
}
|
|
161
159
|
|
|
162
160
|
companion object {
|
|
163
161
|
protected const val TAG = "HybridChartWebviewSpec"
|
package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/chartwebview/chartwebviewOnLoad.kt
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// chartwebviewOnLoad.kt
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
package com.margelo.nitro.chartwebview
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridChartWebviewManager.kt
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
package com.margelo.nitro.chartwebview.views
|
|
@@ -12,13 +12,20 @@ import com.facebook.react.uimanager.ReactStylesDiffMap
|
|
|
12
12
|
import com.facebook.react.uimanager.SimpleViewManager
|
|
13
13
|
import com.facebook.react.uimanager.StateWrapper
|
|
14
14
|
import com.facebook.react.uimanager.ThemedReactContext
|
|
15
|
+
import com.margelo.nitro.R.id.associated_hybrid_view_tag
|
|
16
|
+
import com.margelo.nitro.views.RecyclableView
|
|
15
17
|
import com.margelo.nitro.chartwebview.*
|
|
16
18
|
|
|
17
19
|
/**
|
|
18
20
|
* Represents the React Native `ViewManager` for the "ChartWebview" Nitro HybridView.
|
|
19
21
|
*/
|
|
20
|
-
open class HybridChartWebviewManager: SimpleViewManager<View>() {
|
|
21
|
-
|
|
22
|
+
public open class HybridChartWebviewManager: SimpleViewManager<View>() {
|
|
23
|
+
init {
|
|
24
|
+
if (RecyclableView::class.java.isAssignableFrom(HybridChartWebview::class.java)) {
|
|
25
|
+
// Enable view recycling
|
|
26
|
+
super.setupViewRecycling()
|
|
27
|
+
}
|
|
28
|
+
}
|
|
22
29
|
|
|
23
30
|
override fun getName(): String {
|
|
24
31
|
return "ChartWebview"
|
|
@@ -27,17 +34,13 @@ open class HybridChartWebviewManager: SimpleViewManager<View>() {
|
|
|
27
34
|
override fun createViewInstance(reactContext: ThemedReactContext): View {
|
|
28
35
|
val hybridView = HybridChartWebview(reactContext)
|
|
29
36
|
val view = hybridView.view
|
|
30
|
-
|
|
37
|
+
view.setTag(associated_hybrid_view_tag, hybridView)
|
|
31
38
|
return view
|
|
32
39
|
}
|
|
33
40
|
|
|
34
|
-
override fun onDropViewInstance(view: View) {
|
|
35
|
-
super.onDropViewInstance(view)
|
|
36
|
-
views.remove(view)
|
|
37
|
-
}
|
|
38
|
-
|
|
39
41
|
override fun updateState(view: View, props: ReactStylesDiffMap, stateWrapper: StateWrapper): Any? {
|
|
40
|
-
val hybridView =
|
|
42
|
+
val hybridView = getHybridView(view)
|
|
43
|
+
?: throw Error("Couldn't find view $view in local views table!")
|
|
41
44
|
|
|
42
45
|
// 1. Update each prop individually
|
|
43
46
|
hybridView.beforeUpdate()
|
|
@@ -47,4 +50,31 @@ open class HybridChartWebviewManager: SimpleViewManager<View>() {
|
|
|
47
50
|
// 2. Continue in base View props
|
|
48
51
|
return super.updateState(view, props, stateWrapper)
|
|
49
52
|
}
|
|
53
|
+
|
|
54
|
+
override fun onDropViewInstance(view: View) {
|
|
55
|
+
val hybridView = getHybridView(view)
|
|
56
|
+
hybridView?.onDropView()
|
|
57
|
+
return super.onDropViewInstance(view)
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
protected override fun prepareToRecycleView(reactContext: ThemedReactContext, view: View): View? {
|
|
61
|
+
super.prepareToRecycleView(reactContext, view)
|
|
62
|
+
val hybridView = getHybridView(view)
|
|
63
|
+
?: return null
|
|
64
|
+
|
|
65
|
+
@Suppress("USELESS_IS_CHECK")
|
|
66
|
+
if (hybridView is RecyclableView) {
|
|
67
|
+
// Recycle in it's implementation
|
|
68
|
+
hybridView.prepareForRecycle()
|
|
69
|
+
|
|
70
|
+
// Maybe update the view if it changed
|
|
71
|
+
return hybridView.view
|
|
72
|
+
} else {
|
|
73
|
+
return null
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
private fun getHybridView(view: View): HybridChartWebview? {
|
|
78
|
+
return view.getTag(associated_hybrid_view_tag) as? HybridChartWebview
|
|
79
|
+
}
|
|
50
80
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridChartWebviewStateUpdater.kt
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
package com.margelo.nitro.chartwebview.views
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# ChartWebview+autolinking.rb
|
|
3
3
|
# This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
# https://github.com/mrousavy/nitro
|
|
5
|
-
# Copyright ©
|
|
5
|
+
# Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
#
|
|
7
7
|
|
|
8
8
|
# This is a Ruby script that adds all files generated by Nitrogen
|
|
@@ -52,7 +52,7 @@ def add_nitrogen_files(spec)
|
|
|
52
52
|
spec.pod_target_xcconfig = current_pod_target_xcconfig.merge({
|
|
53
53
|
# Use C++ 20
|
|
54
54
|
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
|
55
|
-
# Enables C++ <-> Swift interop (by default it's only
|
|
55
|
+
# Enables C++ <-> Swift interop (by default it's only ObjC)
|
|
56
56
|
"SWIFT_OBJC_INTEROP_MODE" => "objcxx",
|
|
57
57
|
# Enables stricter modular headers
|
|
58
58
|
"DEFINES_MODULE" => "YES",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// ChartWebview-Swift-Cxx-Bridge.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include "ChartWebview-Swift-Cxx-Bridge.hpp"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// ChartWebview-Swift-Cxx-Bridge.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -42,7 +42,7 @@ namespace margelo::nitro::chartwebview::bridge::swift {
|
|
|
42
42
|
return optional.has_value();
|
|
43
43
|
}
|
|
44
44
|
inline std::string get_std__optional_std__string_(const std::optional<std::string>& optional) noexcept {
|
|
45
|
-
return
|
|
45
|
+
return optional.value();
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
// pragma MARK: std::optional<bool>
|
|
@@ -57,7 +57,7 @@ namespace margelo::nitro::chartwebview::bridge::swift {
|
|
|
57
57
|
return optional.has_value();
|
|
58
58
|
}
|
|
59
59
|
inline bool get_std__optional_bool_(const std::optional<bool>& optional) noexcept {
|
|
60
|
-
return
|
|
60
|
+
return optional.value();
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
// pragma MARK: std::function<void(const std::string& /* message */)>
|
|
@@ -94,7 +94,7 @@ namespace margelo::nitro::chartwebview::bridge::swift {
|
|
|
94
94
|
return optional.has_value();
|
|
95
95
|
}
|
|
96
96
|
inline std::function<void(const std::string& /* message */)> get_std__optional_std__function_void_const_std__string_____message______(const std::optional<std::function<void(const std::string& /* message */)>>& optional) noexcept {
|
|
97
|
-
return
|
|
97
|
+
return optional.value();
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
// pragma MARK: std::function<void()>
|
|
@@ -131,7 +131,7 @@ namespace margelo::nitro::chartwebview::bridge::swift {
|
|
|
131
131
|
return optional.has_value();
|
|
132
132
|
}
|
|
133
133
|
inline std::function<void()> get_std__optional_std__function_void____(const std::optional<std::function<void()>>& optional) noexcept {
|
|
134
|
-
return
|
|
134
|
+
return optional.value();
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
// pragma MARK: std::shared_ptr<HybridChartWebviewSpec>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// ChartWebviewAutolinking.mm
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#import <Foundation/Foundation.h>
|
|
@@ -2,19 +2,16 @@
|
|
|
2
2
|
/// ChartWebviewAutolinking.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import NitroModules
|
|
9
|
+
|
|
10
|
+
// TODO: Use empty enums once Swift supports exporting them as namespaces
|
|
11
|
+
// See: https://github.com/swiftlang/swift/pull/83616
|
|
8
12
|
public final class ChartWebviewAutolinking {
|
|
9
13
|
public typealias bridge = margelo.nitro.chartwebview.bridge.swift
|
|
10
14
|
|
|
11
|
-
/**
|
|
12
|
-
* Creates an instance of a Swift class that implements `HybridChartWebviewSpec`,
|
|
13
|
-
* and wraps it in a Swift class that can directly interop with C++ (`HybridChartWebviewSpec_cxx`)
|
|
14
|
-
*
|
|
15
|
-
* This is generated by Nitrogen and will initialize the class specified
|
|
16
|
-
* in the `"autolinking"` property of `nitro.json` (in this case, `HybridChartWebview`).
|
|
17
|
-
*/
|
|
18
15
|
public static func createChartWebview() -> bridge.std__shared_ptr_HybridChartWebviewSpec_ {
|
|
19
16
|
let hybridObject = HybridChartWebview()
|
|
20
17
|
return { () -> bridge.std__shared_ptr_HybridChartWebviewSpec_ in
|
|
@@ -22,4 +19,8 @@ public final class ChartWebviewAutolinking {
|
|
|
22
19
|
return __cxxWrapped.getCxxPart()
|
|
23
20
|
}()
|
|
24
21
|
}
|
|
22
|
+
|
|
23
|
+
public static func isChartWebviewRecyclable() -> Bool {
|
|
24
|
+
return HybridChartWebview.self is any RecyclableView.Type
|
|
25
|
+
}
|
|
25
26
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridChartWebviewSpecSwift.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include "HybridChartWebviewSpecSwift.hpp"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridChartWebviewSpecSwift.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -49,6 +49,12 @@ namespace margelo::nitro::chartwebview {
|
|
|
49
49
|
inline size_t getExternalMemorySize() noexcept override {
|
|
50
50
|
return _swiftPart.getMemorySize();
|
|
51
51
|
}
|
|
52
|
+
bool equals(const std::shared_ptr<HybridObject>& other) override {
|
|
53
|
+
if (auto otherCast = std::dynamic_pointer_cast<HybridChartWebviewSpecSwift>(other)) {
|
|
54
|
+
return _swiftPart.equals(otherCast->_swiftPart);
|
|
55
|
+
}
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
52
58
|
void dispose() noexcept override {
|
|
53
59
|
_swiftPart.dispose();
|
|
54
60
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridChartWebviewComponent.mm
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#import "HybridChartWebviewComponent.hpp"
|
|
@@ -17,6 +17,13 @@
|
|
|
17
17
|
#import "HybridChartWebviewSpecSwift.hpp"
|
|
18
18
|
#import "ChartWebview-Swift-Cxx-Umbrella.hpp"
|
|
19
19
|
|
|
20
|
+
#if __has_include(<cxxreact/ReactNativeVersion.h>)
|
|
21
|
+
#include <cxxreact/ReactNativeVersion.h>
|
|
22
|
+
#if REACT_NATIVE_VERSION_MINOR >= 82
|
|
23
|
+
#define ENABLE_RCT_COMPONENT_VIEW_INVALIDATE
|
|
24
|
+
#endif
|
|
25
|
+
#endif
|
|
26
|
+
|
|
20
27
|
using namespace facebook;
|
|
21
28
|
using namespace margelo::nitro::chartwebview;
|
|
22
29
|
using namespace margelo::nitro::chartwebview::views;
|
|
@@ -25,6 +32,7 @@ using namespace margelo::nitro::chartwebview::views;
|
|
|
25
32
|
* Represents the React Native View holder for the Nitro "ChartWebview" HybridView.
|
|
26
33
|
*/
|
|
27
34
|
@interface HybridChartWebviewComponent: RCTViewComponentView
|
|
35
|
+
+ (BOOL)shouldBeRecycled;
|
|
28
36
|
@end
|
|
29
37
|
|
|
30
38
|
@implementation HybridChartWebviewComponent {
|
|
@@ -153,4 +161,22 @@ using namespace margelo::nitro::chartwebview::views;
|
|
|
153
161
|
[super updateProps:props oldProps:oldProps];
|
|
154
162
|
}
|
|
155
163
|
|
|
164
|
+
+ (BOOL)shouldBeRecycled {
|
|
165
|
+
return ChartWebview::ChartWebviewAutolinking::isChartWebviewRecyclable();
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
- (void)prepareForRecycle {
|
|
169
|
+
[super prepareForRecycle];
|
|
170
|
+
ChartWebview::HybridChartWebviewSpec_cxx& swiftPart = _hybridView->getSwiftPart();
|
|
171
|
+
swiftPart.maybePrepareForRecycle();
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
#ifdef ENABLE_RCT_COMPONENT_VIEW_INVALIDATE
|
|
175
|
+
- (void)invalidate {
|
|
176
|
+
ChartWebview::HybridChartWebviewSpec_cxx& swiftPart = _hybridView->getSwiftPart();
|
|
177
|
+
swiftPart.onDropView();
|
|
178
|
+
[super invalidate];
|
|
179
|
+
}
|
|
180
|
+
#endif
|
|
181
|
+
|
|
156
182
|
@end
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// Func_void.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// Func_void_std__string.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// HybridChartWebviewSpec.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/// See ``HybridChartWebviewSpec``
|
|
@@ -44,14 +43,14 @@ open class HybridChartWebviewSpec_base {
|
|
|
44
43
|
public init() { }
|
|
45
44
|
public func getCxxWrapper() -> HybridChartWebviewSpec_cxx {
|
|
46
45
|
#if DEBUG
|
|
47
|
-
guard self is HybridChartWebviewSpec else {
|
|
46
|
+
guard self is any HybridChartWebviewSpec else {
|
|
48
47
|
fatalError("`self` is not a `HybridChartWebviewSpec`! Did you accidentally inherit from `HybridChartWebviewSpec_base` instead of `HybridChartWebviewSpec`?")
|
|
49
48
|
}
|
|
50
49
|
#endif
|
|
51
50
|
if let cxxWrapper = self.cxxWrapper {
|
|
52
51
|
return cxxWrapper
|
|
53
52
|
} else {
|
|
54
|
-
let cxxWrapper = HybridChartWebviewSpec_cxx(self as! HybridChartWebviewSpec)
|
|
53
|
+
let cxxWrapper = HybridChartWebviewSpec_cxx(self as! any HybridChartWebviewSpec)
|
|
55
54
|
self.cxxWrapper = cxxWrapper
|
|
56
55
|
return cxxWrapper
|
|
57
56
|
}
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// HybridChartWebviewSpec_cxx.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -96,6 +95,14 @@ open class HybridChartWebviewSpec_cxx {
|
|
|
96
95
|
return MemoryHelper.getSizeOf(self.__implementation) + self.__implementation.memorySize
|
|
97
96
|
}
|
|
98
97
|
|
|
98
|
+
/**
|
|
99
|
+
* Compares this object with the given [other] object for reference equality.
|
|
100
|
+
*/
|
|
101
|
+
@inline(__always)
|
|
102
|
+
public func equals(other: HybridChartWebviewSpec_cxx) -> Bool {
|
|
103
|
+
return self.__implementation === other.__implementation
|
|
104
|
+
}
|
|
105
|
+
|
|
99
106
|
/**
|
|
100
107
|
* Call dispose() on the Swift class.
|
|
101
108
|
* This _may_ be called manually from JS.
|
|
@@ -495,4 +502,13 @@ open class HybridChartWebviewSpec_cxx {
|
|
|
495
502
|
public final func afterUpdate() {
|
|
496
503
|
__implementation.afterUpdate()
|
|
497
504
|
}
|
|
505
|
+
|
|
506
|
+
public final func maybePrepareForRecycle() {
|
|
507
|
+
guard let recyclable = __implementation as? any RecyclableView else { return }
|
|
508
|
+
recyclable.prepareForRecycle()
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
public final func onDropView() {
|
|
512
|
+
__implementation.onDropView()
|
|
513
|
+
}
|
|
498
514
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridChartWebviewSpec.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include "HybridChartWebviewSpec.hpp"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridChartWebviewComponent.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include "HybridChartWebviewComponent.hpp"
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
#include <utility>
|
|
13
13
|
#include <NitroModules/NitroDefines.hpp>
|
|
14
14
|
#include <NitroModules/JSIConverter.hpp>
|
|
15
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
15
16
|
#include <react/renderer/core/RawValue.h>
|
|
16
17
|
#include <react/renderer/core/ShadowNode.h>
|
|
17
18
|
#include <react/renderer/core/ComponentDescriptor.h>
|
|
@@ -130,7 +131,7 @@ namespace margelo::nitro::chartwebview::views {
|
|
|
130
131
|
const react::RawValue* rawValue = rawProps.at("onMessage", nullptr, nullptr);
|
|
131
132
|
if (rawValue == nullptr) return sourceProps.onMessage;
|
|
132
133
|
const auto& [runtime, value] = (std::pair<jsi::Runtime*, jsi::Value>)*rawValue;
|
|
133
|
-
return CachedProp<std::optional<std::function<void(const std::string& /* message */)>>>::fromRawValue(*runtime, value.asObject(*runtime).getProperty(*runtime, "f"), sourceProps.onMessage);
|
|
134
|
+
return CachedProp<std::optional<std::function<void(const std::string& /* message */)>>>::fromRawValue(*runtime, value.asObject(*runtime).getProperty(*runtime, PropNameIDCache::get(*runtime, "f")), sourceProps.onMessage);
|
|
134
135
|
} catch (const std::exception& exc) {
|
|
135
136
|
throw std::runtime_error(std::string("ChartWebview.onMessage: ") + exc.what());
|
|
136
137
|
}
|
|
@@ -140,7 +141,7 @@ namespace margelo::nitro::chartwebview::views {
|
|
|
140
141
|
const react::RawValue* rawValue = rawProps.at("onLoadEnd", nullptr, nullptr);
|
|
141
142
|
if (rawValue == nullptr) return sourceProps.onLoadEnd;
|
|
142
143
|
const auto& [runtime, value] = (std::pair<jsi::Runtime*, jsi::Value>)*rawValue;
|
|
143
|
-
return CachedProp<std::optional<std::function<void()>>>::fromRawValue(*runtime, value.asObject(*runtime).getProperty(*runtime, "f"), sourceProps.onLoadEnd);
|
|
144
|
+
return CachedProp<std::optional<std::function<void()>>>::fromRawValue(*runtime, value.asObject(*runtime).getProperty(*runtime, PropNameIDCache::get(*runtime, "f")), sourceProps.onLoadEnd);
|
|
144
145
|
} catch (const std::exception& exc) {
|
|
145
146
|
throw std::runtime_error(std::string("ChartWebview.onLoadEnd: ") + exc.what());
|
|
146
147
|
}
|
|
@@ -150,7 +151,7 @@ namespace margelo::nitro::chartwebview::views {
|
|
|
150
151
|
const react::RawValue* rawValue = rawProps.at("onError", nullptr, nullptr);
|
|
151
152
|
if (rawValue == nullptr) return sourceProps.onError;
|
|
152
153
|
const auto& [runtime, value] = (std::pair<jsi::Runtime*, jsi::Value>)*rawValue;
|
|
153
|
-
return CachedProp<std::optional<std::function<void(const std::string& /* message */)>>>::fromRawValue(*runtime, value.asObject(*runtime).getProperty(*runtime, "f"), sourceProps.onError);
|
|
154
|
+
return CachedProp<std::optional<std::function<void(const std::string& /* message */)>>>::fromRawValue(*runtime, value.asObject(*runtime).getProperty(*runtime, PropNameIDCache::get(*runtime, "f")), sourceProps.onError);
|
|
154
155
|
} catch (const std::exception& exc) {
|
|
155
156
|
throw std::runtime_error(std::string("ChartWebview.onError: ") + exc.what());
|
|
156
157
|
}
|
|
@@ -160,29 +161,12 @@ namespace margelo::nitro::chartwebview::views {
|
|
|
160
161
|
const react::RawValue* rawValue = rawProps.at("hybridRef", nullptr, nullptr);
|
|
161
162
|
if (rawValue == nullptr) return sourceProps.hybridRef;
|
|
162
163
|
const auto& [runtime, value] = (std::pair<jsi::Runtime*, jsi::Value>)*rawValue;
|
|
163
|
-
return CachedProp<std::optional<std::function<void(const std::shared_ptr<HybridChartWebviewSpec>& /* ref */)>>>::fromRawValue(*runtime, value.asObject(*runtime).getProperty(*runtime, "f"), sourceProps.hybridRef);
|
|
164
|
+
return CachedProp<std::optional<std::function<void(const std::shared_ptr<HybridChartWebviewSpec>& /* ref */)>>>::fromRawValue(*runtime, value.asObject(*runtime).getProperty(*runtime, PropNameIDCache::get(*runtime, "f")), sourceProps.hybridRef);
|
|
164
165
|
} catch (const std::exception& exc) {
|
|
165
166
|
throw std::runtime_error(std::string("ChartWebview.hybridRef: ") + exc.what());
|
|
166
167
|
}
|
|
167
168
|
}()) { }
|
|
168
169
|
|
|
169
|
-
HybridChartWebviewProps::HybridChartWebviewProps(const HybridChartWebviewProps& other):
|
|
170
|
-
react::ViewProps(),
|
|
171
|
-
uri(other.uri),
|
|
172
|
-
localBundle(other.localBundle),
|
|
173
|
-
entry(other.entry),
|
|
174
|
-
paramsJson(other.paramsJson),
|
|
175
|
-
assetHost(other.assetHost),
|
|
176
|
-
bridgeScript(other.bridgeScript),
|
|
177
|
-
reuseKey(other.reuseKey),
|
|
178
|
-
pooled(other.pooled),
|
|
179
|
-
active(other.active),
|
|
180
|
-
webviewDebuggingEnabled(other.webviewDebuggingEnabled),
|
|
181
|
-
onMessage(other.onMessage),
|
|
182
|
-
onLoadEnd(other.onLoadEnd),
|
|
183
|
-
onError(other.onError),
|
|
184
|
-
hybridRef(other.hybridRef) { }
|
|
185
|
-
|
|
186
170
|
bool HybridChartWebviewProps::filterObjectKeys(const std::string& propName) {
|
|
187
171
|
switch (hashString(propName)) {
|
|
188
172
|
case hashString("uri"): return true;
|
|
@@ -220,10 +204,10 @@ namespace margelo::nitro::chartwebview::views {
|
|
|
220
204
|
void HybridChartWebviewComponentDescriptor::adopt(react::ShadowNode& shadowNode) const {
|
|
221
205
|
// This is called immediately after `ShadowNode` is created, cloned or in progress.
|
|
222
206
|
// On Android, we need to wrap props in our state, which gets routed through Java and later unwrapped in JNI/C++.
|
|
223
|
-
auto& concreteShadowNode =
|
|
224
|
-
const HybridChartWebviewProps
|
|
225
|
-
|
|
226
|
-
state
|
|
207
|
+
auto& concreteShadowNode = static_cast<HybridChartWebviewShadowNode&>(shadowNode);
|
|
208
|
+
const std::shared_ptr<const HybridChartWebviewProps>& constProps = concreteShadowNode.getConcreteSharedProps();
|
|
209
|
+
const std::shared_ptr<HybridChartWebviewProps>& props = std::const_pointer_cast<HybridChartWebviewProps>(constProps);
|
|
210
|
+
HybridChartWebviewState state{props};
|
|
227
211
|
concreteShadowNode.setStateData(std::move(state));
|
|
228
212
|
}
|
|
229
213
|
#endif
|