@react-native/codegen 0.81.0-nightly-20250513-e30ba139b → 0.81.0-nightly-20250515-bf26cf9c3
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.
|
@@ -24,7 +24,7 @@ const FileTemplate = ({libraryName, stateClasses}) =>
|
|
|
24
24
|
*/
|
|
25
25
|
#pragma once
|
|
26
26
|
|
|
27
|
-
#ifdef
|
|
27
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
28
28
|
#include <folly/dynamic.h>
|
|
29
29
|
#endif
|
|
30
30
|
|
|
@@ -40,7 +40,7 @@ class ${stateName}State {
|
|
|
40
40
|
public:
|
|
41
41
|
${stateName}State() = default;
|
|
42
42
|
|
|
43
|
-
#ifdef
|
|
43
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
44
44
|
${stateName}State(${stateName}State const &previousState, folly::dynamic data){};
|
|
45
45
|
folly::dynamic getDynamic() const {
|
|
46
46
|
return {};
|
|
@@ -33,7 +33,7 @@ const FileTemplate = ({
|
|
|
33
33
|
*/
|
|
34
34
|
#pragma once
|
|
35
35
|
|
|
36
|
-
#ifdef
|
|
36
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
37
37
|
#include <folly/dynamic.h>
|
|
38
38
|
#endif
|
|
39
39
|
|
|
@@ -50,7 +50,7 @@ class ${stateName}State {
|
|
|
50
50
|
public:
|
|
51
51
|
${stateName}State() = default;
|
|
52
52
|
|
|
53
|
-
#ifdef
|
|
53
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
54
54
|
${stateName}State(${stateName}State const &previousState, folly::dynamic data){};
|
|
55
55
|
folly::dynamic getDynamic() const {
|
|
56
56
|
return {};
|