From b700dedefdb132bb2e8a113f88b5552ad15e8533 Mon Sep 17 00:00:00 2001 From: bwees Date: Wed, 31 Jan 2024 23:58:27 -0600 Subject: [PATCH] remove react native patch, https://github.com/facebook/react-native/issues/42180 --- patches/react-native+0.72.6.patch | 1783 ----------------------------- 1 file changed, 1783 deletions(-) delete mode 100644 patches/react-native+0.72.6.patch diff --git a/patches/react-native+0.72.6.patch b/patches/react-native+0.72.6.patch deleted file mode 100644 index c67bd99..0000000 --- a/patches/react-native+0.72.6.patch +++ /dev/null @@ -1,1783 +0,0 @@ -diff --git a/node_modules/react-native/ReactCommon/react/renderer/components/rncore/ComponentDescriptors.h b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/ComponentDescriptors.h -new file mode 100644 -index 0000000..37b7d8d ---- /dev/null -+++ b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/ComponentDescriptors.h -@@ -0,0 +1,29 @@ -+ -+/** -+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). -+ * -+ * Do not edit this file as changes may cause incorrect behavior and will be lost -+ * once the code is regenerated. -+ * -+ * @generated by codegen project: GenerateComponentDescriptorH.js -+ */ -+ -+#pragma once -+ -+#include -+#include -+ -+namespace facebook { -+namespace react { -+ -+using AndroidHorizontalScrollContentViewComponentDescriptor = ConcreteComponentDescriptor; -+using AndroidSwipeRefreshLayoutComponentDescriptor = ConcreteComponentDescriptor; -+using PullToRefreshViewComponentDescriptor = ConcreteComponentDescriptor; -+using AndroidDrawerLayoutComponentDescriptor = ConcreteComponentDescriptor; -+using ActivityIndicatorViewComponentDescriptor = ConcreteComponentDescriptor; -+using UnimplementedNativeViewComponentDescriptor = ConcreteComponentDescriptor; -+using SwitchComponentDescriptor = ConcreteComponentDescriptor; -+using TraceUpdateOverlayComponentDescriptor = ConcreteComponentDescriptor; -+ -+} // namespace react -+} // namespace facebook -diff --git a/node_modules/react-native/ReactCommon/react/renderer/components/rncore/EventEmitters.cpp b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/EventEmitters.cpp -new file mode 100644 -index 0000000..229fadc ---- /dev/null -+++ b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/EventEmitters.cpp -@@ -0,0 +1,111 @@ -+ -+/** -+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). -+ * -+ * Do not edit this file as changes may cause incorrect behavior and will be lost -+ * once the code is regenerated. -+ * -+ * @generated by codegen project: GenerateEventEmitterCpp.js -+ */ -+ -+#include -+ -+namespace facebook { -+namespace react { -+ -+ -+ -+ -+void AndroidSwipeRefreshLayoutEventEmitter::onRefresh(OnRefresh event) const { -+ dispatchEvent("refresh", [](jsi::Runtime &runtime) { -+ auto payload = jsi::Object(runtime); -+ -+ return payload; -+ }); -+} -+void PullToRefreshViewEventEmitter::onRefresh(OnRefresh event) const { -+ dispatchEvent("refresh", [](jsi::Runtime &runtime) { -+ auto payload = jsi::Object(runtime); -+ -+ return payload; -+ }); -+} -+ -+void AndroidDrawerLayoutEventEmitter::onDrawerSlide(OnDrawerSlide event) const { -+ dispatchEvent("drawerSlide", [event=std::move(event)](jsi::Runtime &runtime) { -+ auto payload = jsi::Object(runtime); -+ payload.setProperty(runtime, "offset", event.offset); -+ return payload; -+ }); -+} -+void AndroidDrawerLayoutEventEmitter::onDrawerStateChanged(OnDrawerStateChanged event) const { -+ dispatchEvent("drawerStateChanged", [event=std::move(event)](jsi::Runtime &runtime) { -+ auto payload = jsi::Object(runtime); -+ payload.setProperty(runtime, "drawerState", event.drawerState); -+ return payload; -+ }); -+} -+void AndroidDrawerLayoutEventEmitter::onDrawerOpen(OnDrawerOpen event) const { -+ dispatchEvent("drawerOpen", [](jsi::Runtime &runtime) { -+ auto payload = jsi::Object(runtime); -+ -+ return payload; -+ }); -+} -+void AndroidDrawerLayoutEventEmitter::onDrawerClose(OnDrawerClose event) const { -+ dispatchEvent("drawerClose", [](jsi::Runtime &runtime) { -+ auto payload = jsi::Object(runtime); -+ -+ return payload; -+ }); -+} -+ -+ -+void SwitchEventEmitter::onChange(OnChange event) const { -+ dispatchEvent("change", [event=std::move(event)](jsi::Runtime &runtime) { -+ auto payload = jsi::Object(runtime); -+ payload.setProperty(runtime, "value", event.value); -+payload.setProperty(runtime, "target", event.target); -+ return payload; -+ }); -+} -+void AndroidSwitchEventEmitter::onChange(OnChange event) const { -+ dispatchEvent("change", [event=std::move(event)](jsi::Runtime &runtime) { -+ auto payload = jsi::Object(runtime); -+ payload.setProperty(runtime, "value", event.value); -+payload.setProperty(runtime, "target", event.target); -+ return payload; -+ }); -+} -+ -+void ModalHostViewEventEmitter::onRequestClose(OnRequestClose event) const { -+ dispatchEvent("requestClose", [](jsi::Runtime &runtime) { -+ auto payload = jsi::Object(runtime); -+ -+ return payload; -+ }); -+} -+void ModalHostViewEventEmitter::onShow(OnShow event) const { -+ dispatchEvent("show", [](jsi::Runtime &runtime) { -+ auto payload = jsi::Object(runtime); -+ -+ return payload; -+ }); -+} -+void ModalHostViewEventEmitter::onDismiss(OnDismiss event) const { -+ dispatchEvent("dismiss", [](jsi::Runtime &runtime) { -+ auto payload = jsi::Object(runtime); -+ -+ return payload; -+ }); -+} -+void ModalHostViewEventEmitter::onOrientationChange(OnOrientationChange event) const { -+ dispatchEvent("orientationChange", [event=std::move(event)](jsi::Runtime &runtime) { -+ auto payload = jsi::Object(runtime); -+ payload.setProperty(runtime, "orientation", toString(event.orientation)); -+ return payload; -+ }); -+} -+ -+} // namespace react -+} // namespace facebook -diff --git a/node_modules/react-native/ReactCommon/react/renderer/components/rncore/EventEmitters.h b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/EventEmitters.h -new file mode 100644 -index 0000000..1897be1 ---- /dev/null -+++ b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/EventEmitters.h -@@ -0,0 +1,186 @@ -+ -+/** -+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). -+ * -+ * Do not edit this file as changes may cause incorrect behavior and will be lost -+ * once the code is regenerated. -+ * -+ * @generated by codegen project: GenerateEventEmitterH.js -+ */ -+#pragma once -+ -+#include -+#include -+ -+namespace facebook { -+namespace react { -+ -+class JSI_EXPORT SafeAreaViewEventEmitter : public ViewEventEmitter { -+ public: -+ using ViewEventEmitter::ViewEventEmitter; -+ -+ -+ -+ -+}; -+class JSI_EXPORT AndroidHorizontalScrollContentViewEventEmitter : public ViewEventEmitter { -+ public: -+ using ViewEventEmitter::ViewEventEmitter; -+ -+ -+ -+ -+}; -+class JSI_EXPORT AndroidProgressBarEventEmitter : public ViewEventEmitter { -+ public: -+ using ViewEventEmitter::ViewEventEmitter; -+ -+ -+ -+ -+}; -+class JSI_EXPORT AndroidSwipeRefreshLayoutEventEmitter : public ViewEventEmitter { -+ public: -+ using ViewEventEmitter::ViewEventEmitter; -+ -+ struct OnRefresh { -+ -+ }; -+ -+ void onRefresh(OnRefresh value) const; -+}; -+class JSI_EXPORT PullToRefreshViewEventEmitter : public ViewEventEmitter { -+ public: -+ using ViewEventEmitter::ViewEventEmitter; -+ -+ struct OnRefresh { -+ -+ }; -+ -+ void onRefresh(OnRefresh value) const; -+}; -+class JSI_EXPORT InputAccessoryEventEmitter : public ViewEventEmitter { -+ public: -+ using ViewEventEmitter::ViewEventEmitter; -+ -+ -+ -+ -+}; -+class JSI_EXPORT AndroidDrawerLayoutEventEmitter : public ViewEventEmitter { -+ public: -+ using ViewEventEmitter::ViewEventEmitter; -+ -+ struct OnDrawerSlide { -+ Float offset; -+ }; -+ -+ struct OnDrawerStateChanged { -+ int drawerState; -+ }; -+ -+ struct OnDrawerOpen { -+ -+ }; -+ -+ struct OnDrawerClose { -+ -+ }; -+ -+ void onDrawerSlide(OnDrawerSlide value) const; -+ -+ void onDrawerStateChanged(OnDrawerStateChanged value) const; -+ -+ void onDrawerOpen(OnDrawerOpen value) const; -+ -+ void onDrawerClose(OnDrawerClose value) const; -+}; -+class JSI_EXPORT ActivityIndicatorViewEventEmitter : public ViewEventEmitter { -+ public: -+ using ViewEventEmitter::ViewEventEmitter; -+ -+ -+ -+ -+}; -+class JSI_EXPORT UnimplementedNativeViewEventEmitter : public ViewEventEmitter { -+ public: -+ using ViewEventEmitter::ViewEventEmitter; -+ -+ -+ -+ -+}; -+class JSI_EXPORT SwitchEventEmitter : public ViewEventEmitter { -+ public: -+ using ViewEventEmitter::ViewEventEmitter; -+ -+ struct OnChange { -+ bool value; -+ int target; -+ }; -+ -+ void onChange(OnChange value) const; -+}; -+class JSI_EXPORT AndroidSwitchEventEmitter : public ViewEventEmitter { -+ public: -+ using ViewEventEmitter::ViewEventEmitter; -+ -+ struct OnChange { -+ bool value; -+ int target; -+ }; -+ -+ void onChange(OnChange value) const; -+}; -+class JSI_EXPORT TraceUpdateOverlayEventEmitter : public ViewEventEmitter { -+ public: -+ using ViewEventEmitter::ViewEventEmitter; -+ -+ -+ -+ -+}; -+class JSI_EXPORT ModalHostViewEventEmitter : public ViewEventEmitter { -+ public: -+ using ViewEventEmitter::ViewEventEmitter; -+ -+ struct OnRequestClose { -+ -+ }; -+ -+ struct OnShow { -+ -+ }; -+ -+ struct OnDismiss { -+ -+ }; -+ -+ enum class OnOrientationChangeOrientation { -+ Portrait, -+ Landscape -+ }; -+ -+ static char const *toString(const OnOrientationChangeOrientation value) { -+ switch (value) { -+ case OnOrientationChangeOrientation::Portrait: return "portrait"; -+ case OnOrientationChangeOrientation::Landscape: return "landscape"; -+ } -+ } -+ -+ struct OnOrientationChange { -+ OnOrientationChangeOrientation orientation; -+ }; -+ -+ void onRequestClose(OnRequestClose value) const; -+ -+ void onShow(OnShow value) const; -+ -+ void onDismiss(OnDismiss value) const; -+ -+ void onOrientationChange(OnOrientationChange value) const; -+}; -+ -+} // namespace react -+} // namespace facebook -diff --git a/node_modules/react-native/ReactCommon/react/renderer/components/rncore/Props.cpp b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/Props.cpp -new file mode 100644 -index 0000000..59f24e5 ---- /dev/null -+++ b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/Props.cpp -@@ -0,0 +1,157 @@ -+ -+/** -+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). -+ * -+ * Do not edit this file as changes may cause incorrect behavior and will be lost -+ * once the code is regenerated. -+ * -+ * @generated by codegen project: GeneratePropsCpp.js -+ */ -+ -+#include -+#include -+#include -+ -+namespace facebook { -+namespace react { -+ -+SafeAreaViewProps::SafeAreaViewProps( -+ const PropsParserContext &context, -+ const SafeAreaViewProps &sourceProps, -+ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps) -+ -+ -+ {} -+AndroidHorizontalScrollContentViewProps::AndroidHorizontalScrollContentViewProps( -+ const PropsParserContext &context, -+ const AndroidHorizontalScrollContentViewProps &sourceProps, -+ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps), -+ -+ removeClippedSubviews(convertRawProp(context, rawProps, "removeClippedSubviews", sourceProps.removeClippedSubviews, {false})) -+ {} -+AndroidProgressBarProps::AndroidProgressBarProps( -+ const PropsParserContext &context, -+ const AndroidProgressBarProps &sourceProps, -+ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps), -+ -+ styleAttr(convertRawProp(context, rawProps, "styleAttr", sourceProps.styleAttr, {})), -+ typeAttr(convertRawProp(context, rawProps, "typeAttr", sourceProps.typeAttr, {})), -+ indeterminate(convertRawProp(context, rawProps, "indeterminate", sourceProps.indeterminate, {false})), -+ progress(convertRawProp(context, rawProps, "progress", sourceProps.progress, {0.0})), -+ animating(convertRawProp(context, rawProps, "animating", sourceProps.animating, {true})), -+ color(convertRawProp(context, rawProps, "color", sourceProps.color, {})), -+ testID(convertRawProp(context, rawProps, "testID", sourceProps.testID, {""})) -+ {} -+AndroidSwipeRefreshLayoutProps::AndroidSwipeRefreshLayoutProps( -+ const PropsParserContext &context, -+ const AndroidSwipeRefreshLayoutProps &sourceProps, -+ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps), -+ -+ enabled(convertRawProp(context, rawProps, "enabled", sourceProps.enabled, {true})), -+ colors(convertRawProp(context, rawProps, "colors", sourceProps.colors, {})), -+ progressBackgroundColor(convertRawProp(context, rawProps, "progressBackgroundColor", sourceProps.progressBackgroundColor, {})), -+ size(convertRawProp(context, rawProps, "size", sourceProps.size, {AndroidSwipeRefreshLayoutSize::Default})), -+ progressViewOffset(convertRawProp(context, rawProps, "progressViewOffset", sourceProps.progressViewOffset, {0.0})), -+ refreshing(convertRawProp(context, rawProps, "refreshing", sourceProps.refreshing, {false})) -+ {} -+PullToRefreshViewProps::PullToRefreshViewProps( -+ const PropsParserContext &context, -+ const PullToRefreshViewProps &sourceProps, -+ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps), -+ -+ tintColor(convertRawProp(context, rawProps, "tintColor", sourceProps.tintColor, {})), -+ titleColor(convertRawProp(context, rawProps, "titleColor", sourceProps.titleColor, {})), -+ title(convertRawProp(context, rawProps, "title", sourceProps.title, {})), -+ progressViewOffset(convertRawProp(context, rawProps, "progressViewOffset", sourceProps.progressViewOffset, {0.0})), -+ refreshing(convertRawProp(context, rawProps, "refreshing", sourceProps.refreshing, {false})) -+ {} -+InputAccessoryProps::InputAccessoryProps( -+ const PropsParserContext &context, -+ const InputAccessoryProps &sourceProps, -+ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps), -+ -+ backgroundColor(convertRawProp(context, rawProps, "backgroundColor", sourceProps.backgroundColor, {})) -+ {} -+AndroidDrawerLayoutProps::AndroidDrawerLayoutProps( -+ const PropsParserContext &context, -+ const AndroidDrawerLayoutProps &sourceProps, -+ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps), -+ -+ keyboardDismissMode(convertRawProp(context, rawProps, "keyboardDismissMode", sourceProps.keyboardDismissMode, {AndroidDrawerLayoutKeyboardDismissMode::None})), -+ drawerBackgroundColor(convertRawProp(context, rawProps, "drawerBackgroundColor", sourceProps.drawerBackgroundColor, {})), -+ drawerPosition(convertRawProp(context, rawProps, "drawerPosition", sourceProps.drawerPosition, {AndroidDrawerLayoutDrawerPosition::Left})), -+ drawerWidth(convertRawProp(context, rawProps, "drawerWidth", sourceProps.drawerWidth, {})), -+ drawerLockMode(convertRawProp(context, rawProps, "drawerLockMode", sourceProps.drawerLockMode, {AndroidDrawerLayoutDrawerLockMode::Unlocked})), -+ statusBarBackgroundColor(convertRawProp(context, rawProps, "statusBarBackgroundColor", sourceProps.statusBarBackgroundColor, {})) -+ {} -+ActivityIndicatorViewProps::ActivityIndicatorViewProps( -+ const PropsParserContext &context, -+ const ActivityIndicatorViewProps &sourceProps, -+ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps), -+ -+ hidesWhenStopped(convertRawProp(context, rawProps, "hidesWhenStopped", sourceProps.hidesWhenStopped, {false})), -+ animating(convertRawProp(context, rawProps, "animating", sourceProps.animating, {false})), -+ color(convertRawProp(context, rawProps, "color", sourceProps.color, {})), -+ size(convertRawProp(context, rawProps, "size", sourceProps.size, {ActivityIndicatorViewSize::Small})) -+ {} -+UnimplementedNativeViewProps::UnimplementedNativeViewProps( -+ const PropsParserContext &context, -+ const UnimplementedNativeViewProps &sourceProps, -+ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps), -+ -+ name(convertRawProp(context, rawProps, "name", sourceProps.name, {""})) -+ {} -+SwitchProps::SwitchProps( -+ const PropsParserContext &context, -+ const SwitchProps &sourceProps, -+ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps), -+ -+ disabled(convertRawProp(context, rawProps, "disabled", sourceProps.disabled, {false})), -+ value(convertRawProp(context, rawProps, "value", sourceProps.value, {false})), -+ tintColor(convertRawProp(context, rawProps, "tintColor", sourceProps.tintColor, {})), -+ onTintColor(convertRawProp(context, rawProps, "onTintColor", sourceProps.onTintColor, {})), -+ thumbTintColor(convertRawProp(context, rawProps, "thumbTintColor", sourceProps.thumbTintColor, {})), -+ thumbColor(convertRawProp(context, rawProps, "thumbColor", sourceProps.thumbColor, {})), -+ trackColorForFalse(convertRawProp(context, rawProps, "trackColorForFalse", sourceProps.trackColorForFalse, {})), -+ trackColorForTrue(convertRawProp(context, rawProps, "trackColorForTrue", sourceProps.trackColorForTrue, {})) -+ {} -+AndroidSwitchProps::AndroidSwitchProps( -+ const PropsParserContext &context, -+ const AndroidSwitchProps &sourceProps, -+ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps), -+ -+ disabled(convertRawProp(context, rawProps, "disabled", sourceProps.disabled, {false})), -+ enabled(convertRawProp(context, rawProps, "enabled", sourceProps.enabled, {true})), -+ thumbColor(convertRawProp(context, rawProps, "thumbColor", sourceProps.thumbColor, {})), -+ trackColorForFalse(convertRawProp(context, rawProps, "trackColorForFalse", sourceProps.trackColorForFalse, {})), -+ trackColorForTrue(convertRawProp(context, rawProps, "trackColorForTrue", sourceProps.trackColorForTrue, {})), -+ value(convertRawProp(context, rawProps, "value", sourceProps.value, {false})), -+ on(convertRawProp(context, rawProps, "on", sourceProps.on, {false})), -+ thumbTintColor(convertRawProp(context, rawProps, "thumbTintColor", sourceProps.thumbTintColor, {})), -+ trackTintColor(convertRawProp(context, rawProps, "trackTintColor", sourceProps.trackTintColor, {})) -+ {} -+TraceUpdateOverlayProps::TraceUpdateOverlayProps( -+ const PropsParserContext &context, -+ const TraceUpdateOverlayProps &sourceProps, -+ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps) -+ -+ -+ {} -+ModalHostViewProps::ModalHostViewProps( -+ const PropsParserContext &context, -+ const ModalHostViewProps &sourceProps, -+ const RawProps &rawProps): ViewProps(context, sourceProps, rawProps), -+ -+ animationType(convertRawProp(context, rawProps, "animationType", sourceProps.animationType, {ModalHostViewAnimationType::None})), -+ presentationStyle(convertRawProp(context, rawProps, "presentationStyle", sourceProps.presentationStyle, {ModalHostViewPresentationStyle::FullScreen})), -+ transparent(convertRawProp(context, rawProps, "transparent", sourceProps.transparent, {false})), -+ statusBarTranslucent(convertRawProp(context, rawProps, "statusBarTranslucent", sourceProps.statusBarTranslucent, {false})), -+ hardwareAccelerated(convertRawProp(context, rawProps, "hardwareAccelerated", sourceProps.hardwareAccelerated, {false})), -+ visible(convertRawProp(context, rawProps, "visible", sourceProps.visible, {false})), -+ animated(convertRawProp(context, rawProps, "animated", sourceProps.animated, {false})), -+ supportedOrientations(convertRawProp(context, rawProps, "supportedOrientations", sourceProps.supportedOrientations, {static_cast(ModalHostViewSupportedOrientations::Portrait)})), -+ identifier(convertRawProp(context, rawProps, "identifier", sourceProps.identifier, {0})) -+ {} -+ -+} // namespace react -+} // namespace facebook -diff --git a/node_modules/react-native/ReactCommon/react/renderer/components/rncore/Props.h b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/Props.h -new file mode 100644 -index 0000000..f402340 ---- /dev/null -+++ b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/Props.h -@@ -0,0 +1,395 @@ -+ -+/** -+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). -+ * -+ * Do not edit this file as changes may cause incorrect behavior and will be lost -+ * once the code is regenerated. -+ * -+ * @generated by codegen project: GeneratePropsH.js -+ */ -+#pragma once -+ -+#include -+#include -+#include -+#include -+#include -+#include -+ -+namespace facebook { -+namespace react { -+ -+class JSI_EXPORT SafeAreaViewProps final : public ViewProps { -+ public: -+ SafeAreaViewProps() = default; -+ SafeAreaViewProps(const PropsParserContext& context, const SafeAreaViewProps &sourceProps, const RawProps &rawProps); -+ -+#pragma mark - Props -+ -+ -+}; -+ -+class JSI_EXPORT AndroidHorizontalScrollContentViewProps final : public ViewProps { -+ public: -+ AndroidHorizontalScrollContentViewProps() = default; -+ AndroidHorizontalScrollContentViewProps(const PropsParserContext& context, const AndroidHorizontalScrollContentViewProps &sourceProps, const RawProps &rawProps); -+ -+#pragma mark - Props -+ -+ bool removeClippedSubviews{false}; -+}; -+ -+class JSI_EXPORT AndroidProgressBarProps final : public ViewProps { -+ public: -+ AndroidProgressBarProps() = default; -+ AndroidProgressBarProps(const PropsParserContext& context, const AndroidProgressBarProps &sourceProps, const RawProps &rawProps); -+ -+#pragma mark - Props -+ -+ std::string styleAttr{}; -+ std::string typeAttr{}; -+ bool indeterminate{false}; -+ double progress{0.0}; -+ bool animating{true}; -+ SharedColor color{}; -+ std::string testID{""}; -+}; -+ -+enum class AndroidSwipeRefreshLayoutSize { Default, Large }; -+ -+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, AndroidSwipeRefreshLayoutSize &result) { -+ auto string = (std::string)value; -+ if (string == "default") { result = AndroidSwipeRefreshLayoutSize::Default; return; } -+ if (string == "large") { result = AndroidSwipeRefreshLayoutSize::Large; return; } -+ abort(); -+} -+ -+static inline std::string toString(const AndroidSwipeRefreshLayoutSize &value) { -+ switch (value) { -+ case AndroidSwipeRefreshLayoutSize::Default: return "default"; -+ case AndroidSwipeRefreshLayoutSize::Large: return "large"; -+ } -+} -+ -+class JSI_EXPORT AndroidSwipeRefreshLayoutProps final : public ViewProps { -+ public: -+ AndroidSwipeRefreshLayoutProps() = default; -+ AndroidSwipeRefreshLayoutProps(const PropsParserContext& context, const AndroidSwipeRefreshLayoutProps &sourceProps, const RawProps &rawProps); -+ -+#pragma mark - Props -+ -+ bool enabled{true}; -+ std::vector colors{}; -+ SharedColor progressBackgroundColor{}; -+ AndroidSwipeRefreshLayoutSize size{AndroidSwipeRefreshLayoutSize::Default}; -+ Float progressViewOffset{0.0}; -+ bool refreshing{false}; -+}; -+ -+class JSI_EXPORT PullToRefreshViewProps final : public ViewProps { -+ public: -+ PullToRefreshViewProps() = default; -+ PullToRefreshViewProps(const PropsParserContext& context, const PullToRefreshViewProps &sourceProps, const RawProps &rawProps); -+ -+#pragma mark - Props -+ -+ SharedColor tintColor{}; -+ SharedColor titleColor{}; -+ std::string title{}; -+ Float progressViewOffset{0.0}; -+ bool refreshing{false}; -+}; -+ -+class JSI_EXPORT InputAccessoryProps final : public ViewProps { -+ public: -+ InputAccessoryProps() = default; -+ InputAccessoryProps(const PropsParserContext& context, const InputAccessoryProps &sourceProps, const RawProps &rawProps); -+ -+#pragma mark - Props -+ -+ SharedColor backgroundColor{}; -+}; -+ -+enum class AndroidDrawerLayoutKeyboardDismissMode { None, OnDrag }; -+ -+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, AndroidDrawerLayoutKeyboardDismissMode &result) { -+ auto string = (std::string)value; -+ if (string == "none") { result = AndroidDrawerLayoutKeyboardDismissMode::None; return; } -+ if (string == "on-drag") { result = AndroidDrawerLayoutKeyboardDismissMode::OnDrag; return; } -+ abort(); -+} -+ -+static inline std::string toString(const AndroidDrawerLayoutKeyboardDismissMode &value) { -+ switch (value) { -+ case AndroidDrawerLayoutKeyboardDismissMode::None: return "none"; -+ case AndroidDrawerLayoutKeyboardDismissMode::OnDrag: return "on-drag"; -+ } -+} -+enum class AndroidDrawerLayoutDrawerPosition { Left, Right }; -+ -+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, AndroidDrawerLayoutDrawerPosition &result) { -+ auto string = (std::string)value; -+ if (string == "left") { result = AndroidDrawerLayoutDrawerPosition::Left; return; } -+ if (string == "right") { result = AndroidDrawerLayoutDrawerPosition::Right; return; } -+ abort(); -+} -+ -+static inline std::string toString(const AndroidDrawerLayoutDrawerPosition &value) { -+ switch (value) { -+ case AndroidDrawerLayoutDrawerPosition::Left: return "left"; -+ case AndroidDrawerLayoutDrawerPosition::Right: return "right"; -+ } -+} -+enum class AndroidDrawerLayoutDrawerLockMode { Unlocked, LockedClosed, LockedOpen }; -+ -+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, AndroidDrawerLayoutDrawerLockMode &result) { -+ auto string = (std::string)value; -+ if (string == "unlocked") { result = AndroidDrawerLayoutDrawerLockMode::Unlocked; return; } -+ if (string == "locked-closed") { result = AndroidDrawerLayoutDrawerLockMode::LockedClosed; return; } -+ if (string == "locked-open") { result = AndroidDrawerLayoutDrawerLockMode::LockedOpen; return; } -+ abort(); -+} -+ -+static inline std::string toString(const AndroidDrawerLayoutDrawerLockMode &value) { -+ switch (value) { -+ case AndroidDrawerLayoutDrawerLockMode::Unlocked: return "unlocked"; -+ case AndroidDrawerLayoutDrawerLockMode::LockedClosed: return "locked-closed"; -+ case AndroidDrawerLayoutDrawerLockMode::LockedOpen: return "locked-open"; -+ } -+} -+ -+class JSI_EXPORT AndroidDrawerLayoutProps final : public ViewProps { -+ public: -+ AndroidDrawerLayoutProps() = default; -+ AndroidDrawerLayoutProps(const PropsParserContext& context, const AndroidDrawerLayoutProps &sourceProps, const RawProps &rawProps); -+ -+#pragma mark - Props -+ -+ AndroidDrawerLayoutKeyboardDismissMode keyboardDismissMode{AndroidDrawerLayoutKeyboardDismissMode::None}; -+ SharedColor drawerBackgroundColor{}; -+ AndroidDrawerLayoutDrawerPosition drawerPosition{AndroidDrawerLayoutDrawerPosition::Left}; -+ Float drawerWidth{}; -+ AndroidDrawerLayoutDrawerLockMode drawerLockMode{AndroidDrawerLayoutDrawerLockMode::Unlocked}; -+ SharedColor statusBarBackgroundColor{}; -+}; -+ -+enum class ActivityIndicatorViewSize { Small, Large }; -+ -+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ActivityIndicatorViewSize &result) { -+ auto string = (std::string)value; -+ if (string == "small") { result = ActivityIndicatorViewSize::Small; return; } -+ if (string == "large") { result = ActivityIndicatorViewSize::Large; return; } -+ abort(); -+} -+ -+static inline std::string toString(const ActivityIndicatorViewSize &value) { -+ switch (value) { -+ case ActivityIndicatorViewSize::Small: return "small"; -+ case ActivityIndicatorViewSize::Large: return "large"; -+ } -+} -+ -+class JSI_EXPORT ActivityIndicatorViewProps final : public ViewProps { -+ public: -+ ActivityIndicatorViewProps() = default; -+ ActivityIndicatorViewProps(const PropsParserContext& context, const ActivityIndicatorViewProps &sourceProps, const RawProps &rawProps); -+ -+#pragma mark - Props -+ -+ bool hidesWhenStopped{false}; -+ bool animating{false}; -+ SharedColor color{}; -+ ActivityIndicatorViewSize size{ActivityIndicatorViewSize::Small}; -+}; -+ -+class JSI_EXPORT UnimplementedNativeViewProps final : public ViewProps { -+ public: -+ UnimplementedNativeViewProps() = default; -+ UnimplementedNativeViewProps(const PropsParserContext& context, const UnimplementedNativeViewProps &sourceProps, const RawProps &rawProps); -+ -+#pragma mark - Props -+ -+ std::string name{""}; -+}; -+ -+class JSI_EXPORT SwitchProps final : public ViewProps { -+ public: -+ SwitchProps() = default; -+ SwitchProps(const PropsParserContext& context, const SwitchProps &sourceProps, const RawProps &rawProps); -+ -+#pragma mark - Props -+ -+ bool disabled{false}; -+ bool value{false}; -+ SharedColor tintColor{}; -+ SharedColor onTintColor{}; -+ SharedColor thumbTintColor{}; -+ SharedColor thumbColor{}; -+ SharedColor trackColorForFalse{}; -+ SharedColor trackColorForTrue{}; -+}; -+ -+class JSI_EXPORT AndroidSwitchProps final : public ViewProps { -+ public: -+ AndroidSwitchProps() = default; -+ AndroidSwitchProps(const PropsParserContext& context, const AndroidSwitchProps &sourceProps, const RawProps &rawProps); -+ -+#pragma mark - Props -+ -+ bool disabled{false}; -+ bool enabled{true}; -+ SharedColor thumbColor{}; -+ SharedColor trackColorForFalse{}; -+ SharedColor trackColorForTrue{}; -+ bool value{false}; -+ bool on{false}; -+ SharedColor thumbTintColor{}; -+ SharedColor trackTintColor{}; -+}; -+ -+class JSI_EXPORT TraceUpdateOverlayProps final : public ViewProps { -+ public: -+ TraceUpdateOverlayProps() = default; -+ TraceUpdateOverlayProps(const PropsParserContext& context, const TraceUpdateOverlayProps &sourceProps, const RawProps &rawProps); -+ -+#pragma mark - Props -+ -+ -+}; -+ -+enum class ModalHostViewAnimationType { None, Slide, Fade }; -+ -+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ModalHostViewAnimationType &result) { -+ auto string = (std::string)value; -+ if (string == "none") { result = ModalHostViewAnimationType::None; return; } -+ if (string == "slide") { result = ModalHostViewAnimationType::Slide; return; } -+ if (string == "fade") { result = ModalHostViewAnimationType::Fade; return; } -+ abort(); -+} -+ -+static inline std::string toString(const ModalHostViewAnimationType &value) { -+ switch (value) { -+ case ModalHostViewAnimationType::None: return "none"; -+ case ModalHostViewAnimationType::Slide: return "slide"; -+ case ModalHostViewAnimationType::Fade: return "fade"; -+ } -+} -+enum class ModalHostViewPresentationStyle { FullScreen, PageSheet, FormSheet, OverFullScreen }; -+ -+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ModalHostViewPresentationStyle &result) { -+ auto string = (std::string)value; -+ if (string == "fullScreen") { result = ModalHostViewPresentationStyle::FullScreen; return; } -+ if (string == "pageSheet") { result = ModalHostViewPresentationStyle::PageSheet; return; } -+ if (string == "formSheet") { result = ModalHostViewPresentationStyle::FormSheet; return; } -+ if (string == "overFullScreen") { result = ModalHostViewPresentationStyle::OverFullScreen; return; } -+ abort(); -+} -+ -+static inline std::string toString(const ModalHostViewPresentationStyle &value) { -+ switch (value) { -+ case ModalHostViewPresentationStyle::FullScreen: return "fullScreen"; -+ case ModalHostViewPresentationStyle::PageSheet: return "pageSheet"; -+ case ModalHostViewPresentationStyle::FormSheet: return "formSheet"; -+ case ModalHostViewPresentationStyle::OverFullScreen: return "overFullScreen"; -+ } -+} -+using ModalHostViewSupportedOrientationsMask = uint32_t; -+ -+enum class ModalHostViewSupportedOrientations: ModalHostViewSupportedOrientationsMask { -+ Portrait = 1 << 0, -+ PortraitUpsideDown = 1 << 1, -+ Landscape = 1 << 2, -+ LandscapeLeft = 1 << 3, -+ LandscapeRight = 1 << 4 -+}; -+ -+constexpr bool operator&( -+ ModalHostViewSupportedOrientationsMask const lhs, -+ enum ModalHostViewSupportedOrientations const rhs) { -+ return lhs & static_cast(rhs); -+} -+ -+constexpr ModalHostViewSupportedOrientationsMask operator|( -+ ModalHostViewSupportedOrientationsMask const lhs, -+ enum ModalHostViewSupportedOrientations const rhs) { -+ return lhs | static_cast(rhs); -+} -+ -+constexpr void operator|=( -+ ModalHostViewSupportedOrientationsMask &lhs, -+ enum ModalHostViewSupportedOrientations const rhs) { -+ lhs = lhs | static_cast(rhs); -+} -+ -+static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ModalHostViewSupportedOrientationsMask &result) { -+ auto items = std::vector{value}; -+ for (const auto &item : items) { -+ if (item == "portrait") { -+ result |= ModalHostViewSupportedOrientations::Portrait; -+ continue; -+ } -+ if (item == "portrait-upside-down") { -+ result |= ModalHostViewSupportedOrientations::PortraitUpsideDown; -+ continue; -+ } -+ if (item == "landscape") { -+ result |= ModalHostViewSupportedOrientations::Landscape; -+ continue; -+ } -+ if (item == "landscape-left") { -+ result |= ModalHostViewSupportedOrientations::LandscapeLeft; -+ continue; -+ } -+ if (item == "landscape-right") { -+ result |= ModalHostViewSupportedOrientations::LandscapeRight; -+ continue; -+ } -+ abort(); -+ } -+} -+ -+static inline std::string toString(const ModalHostViewSupportedOrientationsMask &value) { -+ auto result = std::string{}; -+ auto separator = std::string{", "}; -+ -+ if (value & ModalHostViewSupportedOrientations::Portrait) { -+ result += "portrait" + separator; -+ } -+ if (value & ModalHostViewSupportedOrientations::PortraitUpsideDown) { -+ result += "portrait-upside-down" + separator; -+ } -+ if (value & ModalHostViewSupportedOrientations::Landscape) { -+ result += "landscape" + separator; -+ } -+ if (value & ModalHostViewSupportedOrientations::LandscapeLeft) { -+ result += "landscape-left" + separator; -+ } -+ if (value & ModalHostViewSupportedOrientations::LandscapeRight) { -+ result += "landscape-right" + separator; -+ } -+ if (!result.empty()) { -+ result.erase(result.length() - separator.length()); -+ } -+ return result; -+} -+ -+class JSI_EXPORT ModalHostViewProps final : public ViewProps { -+ public: -+ ModalHostViewProps() = default; -+ ModalHostViewProps(const PropsParserContext& context, const ModalHostViewProps &sourceProps, const RawProps &rawProps); -+ -+#pragma mark - Props -+ -+ ModalHostViewAnimationType animationType{ModalHostViewAnimationType::None}; -+ ModalHostViewPresentationStyle presentationStyle{ModalHostViewPresentationStyle::FullScreen}; -+ bool transparent{false}; -+ bool statusBarTranslucent{false}; -+ bool hardwareAccelerated{false}; -+ bool visible{false}; -+ bool animated{false}; -+ ModalHostViewSupportedOrientationsMask supportedOrientations{static_cast(ModalHostViewSupportedOrientations::Portrait)}; -+ int identifier{0}; -+}; -+ -+} // namespace react -+} // namespace facebook -diff --git a/node_modules/react-native/ReactCommon/react/renderer/components/rncore/RCTComponentViewHelpers.h b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/RCTComponentViewHelpers.h -new file mode 100644 -index 0000000..e08f2ae ---- /dev/null -+++ b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/RCTComponentViewHelpers.h -@@ -0,0 +1,257 @@ -+/** -+* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). -+* -+* Do not edit this file as changes may cause incorrect behavior and will be lost -+* once the code is regenerated. -+* -+* @generated by codegen project: GenerateComponentHObjCpp.js -+*/ -+ -+#import -+#import -+#import -+ -+NS_ASSUME_NONNULL_BEGIN -+ -+@protocol RCTSafeAreaViewViewProtocol -+ -+@end -+ -+@protocol RCTAndroidHorizontalScrollContentViewViewProtocol -+ -+@end -+ -+@protocol RCTAndroidProgressBarViewProtocol -+ -+@end -+ -+@protocol RCTAndroidSwipeRefreshLayoutViewProtocol -+- (void)setNativeRefreshing:(BOOL)value; -+@end -+ -+RCT_EXTERN inline void RCTAndroidSwipeRefreshLayoutHandleCommand( -+ id componentView, -+ NSString const *commandName, -+ NSArray const *args) -+{ -+ if ([commandName isEqualToString:@"setNativeRefreshing"]) { -+#if RCT_DEBUG -+ if ([args count] != 1) { -+ RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"AndroidSwipeRefreshLayout", commandName, (int)[args count], 1); -+ return; -+ } -+#endif -+ -+ NSObject *arg0 = args[0]; -+#if RCT_DEBUG -+ if (!RCTValidateTypeOfViewCommandArgument(arg0, [NSNumber class], @"boolean", @"AndroidSwipeRefreshLayout", commandName, @"1st")) { -+ return; -+ } -+#endif -+ BOOL value = [(NSNumber *)arg0 boolValue]; -+ -+ [componentView setNativeRefreshing:value]; -+ return; -+} -+ -+#if RCT_DEBUG -+ RCTLogError(@"%@ received command %@, which is not a supported command.", @"AndroidSwipeRefreshLayout", commandName); -+#endif -+} -+ -+@protocol RCTPullToRefreshViewViewProtocol -+- (void)setNativeRefreshing:(BOOL)refreshing; -+@end -+ -+RCT_EXTERN inline void RCTPullToRefreshViewHandleCommand( -+ id componentView, -+ NSString const *commandName, -+ NSArray const *args) -+{ -+ if ([commandName isEqualToString:@"setNativeRefreshing"]) { -+#if RCT_DEBUG -+ if ([args count] != 1) { -+ RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"PullToRefreshView", commandName, (int)[args count], 1); -+ return; -+ } -+#endif -+ -+ NSObject *arg0 = args[0]; -+#if RCT_DEBUG -+ if (!RCTValidateTypeOfViewCommandArgument(arg0, [NSNumber class], @"boolean", @"PullToRefreshView", commandName, @"1st")) { -+ return; -+ } -+#endif -+ BOOL refreshing = [(NSNumber *)arg0 boolValue]; -+ -+ [componentView setNativeRefreshing:refreshing]; -+ return; -+} -+ -+#if RCT_DEBUG -+ RCTLogError(@"%@ received command %@, which is not a supported command.", @"PullToRefreshView", commandName); -+#endif -+} -+ -+@protocol RCTInputAccessoryViewProtocol -+ -+@end -+ -+@protocol RCTAndroidDrawerLayoutViewProtocol -+- (void)openDrawer; -+- (void)closeDrawer; -+@end -+ -+RCT_EXTERN inline void RCTAndroidDrawerLayoutHandleCommand( -+ id componentView, -+ NSString const *commandName, -+ NSArray const *args) -+{ -+ if ([commandName isEqualToString:@"openDrawer"]) { -+#if RCT_DEBUG -+ if ([args count] != 0) { -+ RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"AndroidDrawerLayout", commandName, (int)[args count], 0); -+ return; -+ } -+#endif -+ -+ -+ -+ [componentView openDrawer]; -+ return; -+} -+ -+if ([commandName isEqualToString:@"closeDrawer"]) { -+#if RCT_DEBUG -+ if ([args count] != 0) { -+ RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"AndroidDrawerLayout", commandName, (int)[args count], 0); -+ return; -+ } -+#endif -+ -+ -+ -+ [componentView closeDrawer]; -+ return; -+} -+ -+#if RCT_DEBUG -+ RCTLogError(@"%@ received command %@, which is not a supported command.", @"AndroidDrawerLayout", commandName); -+#endif -+} -+ -+@protocol RCTActivityIndicatorViewViewProtocol -+ -+@end -+ -+@protocol RCTUnimplementedNativeViewViewProtocol -+ -+@end -+ -+@protocol RCTSwitchViewProtocol -+- (void)setValue:(BOOL)value; -+@end -+ -+RCT_EXTERN inline void RCTSwitchHandleCommand( -+ id componentView, -+ NSString const *commandName, -+ NSArray const *args) -+{ -+ if ([commandName isEqualToString:@"setValue"]) { -+#if RCT_DEBUG -+ if ([args count] != 1) { -+ RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"Switch", commandName, (int)[args count], 1); -+ return; -+ } -+#endif -+ -+ NSObject *arg0 = args[0]; -+#if RCT_DEBUG -+ if (!RCTValidateTypeOfViewCommandArgument(arg0, [NSNumber class], @"boolean", @"Switch", commandName, @"1st")) { -+ return; -+ } -+#endif -+ BOOL value = [(NSNumber *)arg0 boolValue]; -+ -+ [componentView setValue:value]; -+ return; -+} -+ -+#if RCT_DEBUG -+ RCTLogError(@"%@ received command %@, which is not a supported command.", @"Switch", commandName); -+#endif -+} -+ -+@protocol RCTAndroidSwitchViewProtocol -+- (void)setNativeValue:(BOOL)value; -+@end -+ -+RCT_EXTERN inline void RCTAndroidSwitchHandleCommand( -+ id componentView, -+ NSString const *commandName, -+ NSArray const *args) -+{ -+ if ([commandName isEqualToString:@"setNativeValue"]) { -+#if RCT_DEBUG -+ if ([args count] != 1) { -+ RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"AndroidSwitch", commandName, (int)[args count], 1); -+ return; -+ } -+#endif -+ -+ NSObject *arg0 = args[0]; -+#if RCT_DEBUG -+ if (!RCTValidateTypeOfViewCommandArgument(arg0, [NSNumber class], @"boolean", @"AndroidSwitch", commandName, @"1st")) { -+ return; -+ } -+#endif -+ BOOL value = [(NSNumber *)arg0 boolValue]; -+ -+ [componentView setNativeValue:value]; -+ return; -+} -+ -+#if RCT_DEBUG -+ RCTLogError(@"%@ received command %@, which is not a supported command.", @"AndroidSwitch", commandName); -+#endif -+} -+ -+@protocol RCTTraceUpdateOverlayViewProtocol -+- (void)draw:(NSString *)overlays; -+@end -+ -+RCT_EXTERN inline void RCTTraceUpdateOverlayHandleCommand( -+ id componentView, -+ NSString const *commandName, -+ NSArray const *args) -+{ -+ if ([commandName isEqualToString:@"draw"]) { -+#if RCT_DEBUG -+ if ([args count] != 1) { -+ RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"TraceUpdateOverlay", commandName, (int)[args count], 1); -+ return; -+ } -+#endif -+ -+ NSObject *arg0 = args[0]; -+#if RCT_DEBUG -+ if (!RCTValidateTypeOfViewCommandArgument(arg0, [NSString class], @"string", @"TraceUpdateOverlay", commandName, @"1st")) { -+ return; -+ } -+#endif -+ NSString * overlays = (NSString *)arg0; -+ -+ [componentView draw:overlays]; -+ return; -+} -+ -+#if RCT_DEBUG -+ RCTLogError(@"%@ received command %@, which is not a supported command.", @"TraceUpdateOverlay", commandName); -+#endif -+} -+ -+@protocol RCTModalHostViewViewProtocol -+ -+@end -+ -+NS_ASSUME_NONNULL_END -\ No newline at end of file -diff --git a/node_modules/react-native/ReactCommon/react/renderer/components/rncore/ShadowNodes.cpp b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/ShadowNodes.cpp -new file mode 100644 -index 0000000..d9a2760 ---- /dev/null -+++ b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/ShadowNodes.cpp -@@ -0,0 +1,26 @@ -+ -+/** -+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). -+ * -+ * Do not edit this file as changes may cause incorrect behavior and will be lost -+ * once the code is regenerated. -+ * -+ * @generated by codegen project: GenerateShadowNodeCpp.js -+ */ -+ -+#include -+ -+namespace facebook { -+namespace react { -+ -+extern const char AndroidHorizontalScrollContentViewComponentName[] = "AndroidHorizontalScrollContentView"; -+extern const char AndroidSwipeRefreshLayoutComponentName[] = "AndroidSwipeRefreshLayout"; -+extern const char PullToRefreshViewComponentName[] = "PullToRefreshView"; -+extern const char AndroidDrawerLayoutComponentName[] = "AndroidDrawerLayout"; -+extern const char ActivityIndicatorViewComponentName[] = "ActivityIndicatorView"; -+extern const char UnimplementedNativeViewComponentName[] = "UnimplementedNativeView"; -+extern const char SwitchComponentName[] = "Switch"; -+extern const char TraceUpdateOverlayComponentName[] = "TraceUpdateOverlay"; -+ -+} // namespace react -+} // namespace facebook -diff --git a/node_modules/react-native/ReactCommon/react/renderer/components/rncore/ShadowNodes.h b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/ShadowNodes.h -new file mode 100644 -index 0000000..a5874dc ---- /dev/null -+++ b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/ShadowNodes.h -@@ -0,0 +1,111 @@ -+ -+/** -+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). -+ * -+ * Do not edit this file as changes may cause incorrect behavior and will be lost -+ * once the code is regenerated. -+ * -+ * @generated by codegen project: GenerateShadowNodeH.js -+ */ -+ -+#pragma once -+ -+#include -+#include -+#include -+#include -+#include -+ -+namespace facebook { -+namespace react { -+ -+JSI_EXPORT extern const char AndroidHorizontalScrollContentViewComponentName[]; -+ -+/* -+ * `ShadowNode` for component. -+ */ -+using AndroidHorizontalScrollContentViewShadowNode = ConcreteViewShadowNode< -+ AndroidHorizontalScrollContentViewComponentName, -+ AndroidHorizontalScrollContentViewProps, -+ AndroidHorizontalScrollContentViewEventEmitter, -+ AndroidHorizontalScrollContentViewState>; -+ -+JSI_EXPORT extern const char AndroidSwipeRefreshLayoutComponentName[]; -+ -+/* -+ * `ShadowNode` for component. -+ */ -+using AndroidSwipeRefreshLayoutShadowNode = ConcreteViewShadowNode< -+ AndroidSwipeRefreshLayoutComponentName, -+ AndroidSwipeRefreshLayoutProps, -+ AndroidSwipeRefreshLayoutEventEmitter, -+ AndroidSwipeRefreshLayoutState>; -+ -+JSI_EXPORT extern const char PullToRefreshViewComponentName[]; -+ -+/* -+ * `ShadowNode` for component. -+ */ -+using PullToRefreshViewShadowNode = ConcreteViewShadowNode< -+ PullToRefreshViewComponentName, -+ PullToRefreshViewProps, -+ PullToRefreshViewEventEmitter, -+ PullToRefreshViewState>; -+ -+JSI_EXPORT extern const char AndroidDrawerLayoutComponentName[]; -+ -+/* -+ * `ShadowNode` for component. -+ */ -+using AndroidDrawerLayoutShadowNode = ConcreteViewShadowNode< -+ AndroidDrawerLayoutComponentName, -+ AndroidDrawerLayoutProps, -+ AndroidDrawerLayoutEventEmitter, -+ AndroidDrawerLayoutState>; -+ -+JSI_EXPORT extern const char ActivityIndicatorViewComponentName[]; -+ -+/* -+ * `ShadowNode` for component. -+ */ -+using ActivityIndicatorViewShadowNode = ConcreteViewShadowNode< -+ ActivityIndicatorViewComponentName, -+ ActivityIndicatorViewProps, -+ ActivityIndicatorViewEventEmitter, -+ ActivityIndicatorViewState>; -+ -+JSI_EXPORT extern const char UnimplementedNativeViewComponentName[]; -+ -+/* -+ * `ShadowNode` for component. -+ */ -+using UnimplementedNativeViewShadowNode = ConcreteViewShadowNode< -+ UnimplementedNativeViewComponentName, -+ UnimplementedNativeViewProps, -+ UnimplementedNativeViewEventEmitter, -+ UnimplementedNativeViewState>; -+ -+JSI_EXPORT extern const char SwitchComponentName[]; -+ -+/* -+ * `ShadowNode` for component. -+ */ -+using SwitchShadowNode = ConcreteViewShadowNode< -+ SwitchComponentName, -+ SwitchProps, -+ SwitchEventEmitter, -+ SwitchState>; -+ -+JSI_EXPORT extern const char TraceUpdateOverlayComponentName[]; -+ -+/* -+ * `ShadowNode` for component. -+ */ -+using TraceUpdateOverlayShadowNode = ConcreteViewShadowNode< -+ TraceUpdateOverlayComponentName, -+ TraceUpdateOverlayProps, -+ TraceUpdateOverlayEventEmitter, -+ TraceUpdateOverlayState>; -+ -+} // namespace react -+} // namespace facebook -diff --git a/node_modules/react-native/ReactCommon/react/renderer/components/rncore/States.cpp b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/States.cpp -new file mode 100644 -index 0000000..3b5a0f5 ---- /dev/null -+++ b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/States.cpp -@@ -0,0 +1,18 @@ -+ -+/** -+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). -+ * -+ * Do not edit this file as changes may cause incorrect behavior and will be lost -+ * once the code is regenerated. -+ * -+ * @generated by codegen project: GenerateStateCpp.js -+ */ -+#include -+ -+namespace facebook { -+namespace react { -+ -+ -+ -+} // namespace react -+} // namespace facebook -diff --git a/node_modules/react-native/ReactCommon/react/renderer/components/rncore/States.h b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/States.h -new file mode 100644 -index 0000000..29ac2df ---- /dev/null -+++ b/node_modules/react-native/ReactCommon/react/renderer/components/rncore/States.h -@@ -0,0 +1,141 @@ -+/** -+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). -+ * -+ * Do not edit this file as changes may cause incorrect behavior and will be lost -+ * once the code is regenerated. -+ * -+ * @generated by codegen project: GenerateStateH.js -+ */ -+#pragma once -+ -+#ifdef ANDROID -+#include -+#include -+#include -+#endif -+ -+namespace facebook { -+namespace react { -+ -+class AndroidHorizontalScrollContentViewState { -+public: -+ AndroidHorizontalScrollContentViewState() = default; -+ -+#ifdef ANDROID -+ AndroidHorizontalScrollContentViewState(AndroidHorizontalScrollContentViewState const &previousState, folly::dynamic data){}; -+ folly::dynamic getDynamic() const { -+ return {}; -+ }; -+ MapBuffer getMapBuffer() const { -+ return MapBufferBuilder::EMPTY(); -+ }; -+#endif -+}; -+ -+class AndroidSwipeRefreshLayoutState { -+public: -+ AndroidSwipeRefreshLayoutState() = default; -+ -+#ifdef ANDROID -+ AndroidSwipeRefreshLayoutState(AndroidSwipeRefreshLayoutState const &previousState, folly::dynamic data){}; -+ folly::dynamic getDynamic() const { -+ return {}; -+ }; -+ MapBuffer getMapBuffer() const { -+ return MapBufferBuilder::EMPTY(); -+ }; -+#endif -+}; -+ -+class PullToRefreshViewState { -+public: -+ PullToRefreshViewState() = default; -+ -+#ifdef ANDROID -+ PullToRefreshViewState(PullToRefreshViewState const &previousState, folly::dynamic data){}; -+ folly::dynamic getDynamic() const { -+ return {}; -+ }; -+ MapBuffer getMapBuffer() const { -+ return MapBufferBuilder::EMPTY(); -+ }; -+#endif -+}; -+ -+class AndroidDrawerLayoutState { -+public: -+ AndroidDrawerLayoutState() = default; -+ -+#ifdef ANDROID -+ AndroidDrawerLayoutState(AndroidDrawerLayoutState const &previousState, folly::dynamic data){}; -+ folly::dynamic getDynamic() const { -+ return {}; -+ }; -+ MapBuffer getMapBuffer() const { -+ return MapBufferBuilder::EMPTY(); -+ }; -+#endif -+}; -+ -+class ActivityIndicatorViewState { -+public: -+ ActivityIndicatorViewState() = default; -+ -+#ifdef ANDROID -+ ActivityIndicatorViewState(ActivityIndicatorViewState const &previousState, folly::dynamic data){}; -+ folly::dynamic getDynamic() const { -+ return {}; -+ }; -+ MapBuffer getMapBuffer() const { -+ return MapBufferBuilder::EMPTY(); -+ }; -+#endif -+}; -+ -+class UnimplementedNativeViewState { -+public: -+ UnimplementedNativeViewState() = default; -+ -+#ifdef ANDROID -+ UnimplementedNativeViewState(UnimplementedNativeViewState const &previousState, folly::dynamic data){}; -+ folly::dynamic getDynamic() const { -+ return {}; -+ }; -+ MapBuffer getMapBuffer() const { -+ return MapBufferBuilder::EMPTY(); -+ }; -+#endif -+}; -+ -+class SwitchState { -+public: -+ SwitchState() = default; -+ -+#ifdef ANDROID -+ SwitchState(SwitchState const &previousState, folly::dynamic data){}; -+ folly::dynamic getDynamic() const { -+ return {}; -+ }; -+ MapBuffer getMapBuffer() const { -+ return MapBufferBuilder::EMPTY(); -+ }; -+#endif -+}; -+ -+class TraceUpdateOverlayState { -+public: -+ TraceUpdateOverlayState() = default; -+ -+#ifdef ANDROID -+ TraceUpdateOverlayState(TraceUpdateOverlayState const &previousState, folly::dynamic data){}; -+ folly::dynamic getDynamic() const { -+ return {}; -+ }; -+ MapBuffer getMapBuffer() const { -+ return MapBufferBuilder::EMPTY(); -+ }; -+#endif -+}; -+ -+} // namespace react -+} // namespace facebook -\ No newline at end of file -diff --git a/node_modules/react-native/scripts/.packager.env b/node_modules/react-native/scripts/.packager.env -new file mode 100644 -index 0000000..361f5fb ---- /dev/null -+++ b/node_modules/react-native/scripts/.packager.env -@@ -0,0 +1 @@ -+export RCT_METRO_PORT=8081 -diff --git a/node_modules/react-native/sdks/hermes/hermes-engine.podspec b/node_modules/react-native/sdks/hermes/hermes-engine.podspec -new file mode 100644 -index 0000000..87d0710 ---- /dev/null -+++ b/node_modules/react-native/sdks/hermes/hermes-engine.podspec -@@ -0,0 +1,114 @@ -+# Copyright (c) Meta Platforms, Inc. and affiliates. -+# -+# This source code is licensed under the MIT license found in the -+# LICENSE file in the root directory of this source tree. -+ -+require "json" -+require_relative "./hermes-utils.rb" -+ -+react_native_path = File.join(__dir__, "..", "..") -+ -+# Whether Hermes is built for Release or Debug is determined by the PRODUCTION envvar. -+build_type = ENV['PRODUCTION'] == "1" ? :release : :debug -+ -+# package.json -+package = JSON.parse(File.read(File.join(react_native_path, "package.json"))) -+version = package['version'] -+ -+# sdks/.hermesversion -+hermestag_file = File.join(react_native_path, "sdks", ".hermesversion") -+build_from_source = ENV['BUILD_FROM_SOURCE'] === 'true' -+ -+git = "https://github.com/facebook/hermes.git" -+ -+abort_if_invalid_tarball_provided! -+ -+source = compute_hermes_source(build_from_source, hermestag_file, git, version, build_type, react_native_path) -+ -+Pod::Spec.new do |spec| -+ spec.name = "hermes-engine" -+ spec.version = version -+ spec.summary = "Hermes is a small and lightweight JavaScript engine optimized for running React Native." -+ spec.description = "Hermes is a JavaScript engine optimized for fast start-up of React Native apps. It features ahead-of-time static optimization and compact bytecode." -+ spec.homepage = "https://hermesengine.dev" -+ spec.license = package['license'] -+ spec.author = "Facebook" -+ spec.source = source -+ spec.platforms = { :osx => "10.13", :ios => "12.4" } -+ -+ spec.preserve_paths = '**/*.*' -+ spec.source_files = '' -+ -+ spec.pod_target_xcconfig = { -+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17", -+ "CLANG_CXX_LIBRARY" => "compiler-default" -+ }.merge!(build_type == :debug ? { "GCC_PREPROCESSOR_DEFINITIONS" => "HERMES_ENABLE_DEBUGGER=1" } : {}) -+ -+ spec.ios.vendored_frameworks = "destroot/Library/Frameworks/ios/hermes.framework" -+ spec.osx.vendored_frameworks = "destroot/Library/Frameworks/macosx/hermes.framework" -+ -+ if source[:http] then -+ -+ spec.subspec 'Pre-built' do |ss| -+ ss.preserve_paths = ["destroot/bin/*"].concat(build_type == :debug ? ["**/*.{h,c,cpp}"] : []) -+ ss.source_files = "destroot/include/**/*.h" -+ ss.exclude_files = ["destroot/include/jsi/jsi/JSIDynamic.{h,cpp}", "destroot/include/jsi/jsi/jsilib-*.{h,cpp}"] -+ ss.header_mappings_dir = "destroot/include" -+ ss.ios.vendored_frameworks = "destroot/Library/Frameworks/universal/hermes.xcframework" -+ ss.osx.vendored_frameworks = "destroot/Library/Frameworks/macosx/hermes.framework" -+ end -+ -+ elsif source[:git] then -+ -+ spec.subspec 'Hermes' do |ss| -+ ss.source_files = '' -+ ss.public_header_files = 'API/hermes/*.h' -+ ss.header_dir = 'hermes' -+ end -+ -+ spec.subspec 'JSI' do |ss| -+ ss.source_files = '' -+ ss.public_header_files = 'API/jsi/jsi/*.h' -+ ss.header_dir = 'jsi' -+ end -+ -+ spec.subspec 'Public' do |ss| -+ ss.source_files = '' -+ ss.public_header_files = 'public/hermes/Public/*.h' -+ ss.header_dir = 'hermes/Public' -+ end -+ -+ hermesc_path = "${PODS_ROOT}/hermes-engine/build_host_hermesc" -+ -+ if ENV.has_key?('HERMES_OVERRIDE_HERMESC_PATH') && File.exist?(ENV['HERMES_OVERRIDE_HERMESC_PATH']) then -+ hermesc_path = ENV['HERMES_OVERRIDE_HERMESC_PATH'] -+ end -+ -+ spec.user_target_xcconfig = { -+ 'HERMES_CLI_PATH' => "#{hermesc_path}/bin/hermesc" -+ } -+ -+ spec.prepare_command = ". #{react_native_path}/sdks/hermes-engine/utils/create-dummy-hermes-xcframework.sh" -+ -+ CMAKE_BINARY = %x(command -v cmake | tr -d '\n') -+ # NOTE: Script phases are sorted alphabetically inside Xcode project -+ spec.script_phases = [ -+ { -+ :name => '[RN] [1] Build Hermesc', -+ :script => <<-EOS -+ . ${PODS_ROOT}/../.xcode.env -+ export CMAKE_BINARY=${CMAKE_BINARY:-#{CMAKE_BINARY}} -+ . ${REACT_NATIVE_PATH}/sdks/hermes-engine/utils/build-hermesc-xcode.sh #{hermesc_path} -+ EOS -+ }, -+ { -+ :name => '[RN] [2] Build Hermes', -+ :script => <<-EOS -+ . ${PODS_ROOT}/../.xcode.env -+ export CMAKE_BINARY=${CMAKE_BINARY:-#{CMAKE_BINARY}} -+ . ${REACT_NATIVE_PATH}/sdks/hermes-engine/utils/build-hermes-xcode.sh #{version} #{hermesc_path}/ImportHermesc.cmake -+ EOS -+ } -+ ] -+ end -+end -diff --git a/node_modules/react-native/sdks/hermes/hermes-utils.rb b/node_modules/react-native/sdks/hermes/hermes-utils.rb -new file mode 100644 -index 0000000..06f3644 ---- /dev/null -+++ b/node_modules/react-native/sdks/hermes/hermes-utils.rb -@@ -0,0 +1,144 @@ -+# Copyright (c) Meta Platforms, Inc. and affiliates. -+# -+# This source code is licensed under the MIT license found in the -+# LICENSE file in the root directory of this source tree. -+ -+require 'net/http' -+require 'rexml/document' -+ -+# This function abort the build if the `HERMES_ENGINE_TARBALL_PATH` ENV variable is set with an invalid path -+def abort_if_invalid_tarball_provided!() -+ if ENV.has_key?('HERMES_ENGINE_TARBALL_PATH') && !File.exist?(ENV['HERMES_ENGINE_TARBALL_PATH']) -+ abort "[Hermes] HERMES_ENGINE_TARBALL_PATH is set, but points to a non-existing file: \"#{ENV['HERMES_ENGINE_TARBALL_PATH']}\"\nIf you don't want to use tarball, run `unset HERMES_ENGINE_TARBALL_PATH`" -+ end -+end -+ -+# It computes the right value for the hermes-engine.podspec's source. -+# - To use a specific tarball, install the dependencies with: -+# `HERMES_ENGINE_TARBALL_PATH= bundle exec pod install` -+# - To force a build from source, install the dependencies with: -+# `BUILD_FROM_SOURCE=true bundle exec pod install` -+# If none of the two are provided, Cocoapods will check whether there is a tarball for the current version -+# (either release or nightly). If not, it will fall back building from source (the latest commit on main). -+# -+# Parameters: -+# - build_from_source: boolean to force a build from source. -+# - hermestag_file: path to the hermes tag file. -+# - git: uri to the hermes repository -+# - version: current version of the pod -+# - build_type: build type of the hermes engine. It can be `:release` or `:debug` -+# - react_native_path: path to react native -+# -+# Returns: a properly configured source object -+def compute_hermes_source(build_from_source, hermestag_file, git, version, build_type, react_native_path) -+ source = {} -+ -+ if ENV.has_key?('HERMES_ENGINE_TARBALL_PATH') -+ use_tarball(source) -+ elsif build_from_source -+ if File.exist?(hermestag_file) -+ build_from_tagfile(source, git, hermestag_file) -+ else -+ build_hermes_from_source(source, git) -+ end -+ elsif hermes_artifact_exists(release_tarball_url(version, build_type)) -+ use_release_tarball(source, version, build_type) -+ elsif hermes_artifact_exists(nightly_tarball_url(version).gsub("\\", "")) -+ use_nightly_tarball(source, react_native_path, version) -+ else -+ build_hermes_from_source(source, git) -+ end -+ -+ return source -+end -+ -+def use_tarball(source) -+ tarball_path = ENV['HERMES_ENGINE_TARBALL_PATH'] -+ putsIfPodPresent("[Hermes] Using pre-built Hermes binaries from local path: #{tarball_path}") -+ source[:http] = "file://#{tarball_path}" -+end -+ -+def build_from_tagfile(source, git, hermestag_file) -+ hermestag = File.read(hermestag_file).strip -+ putsIfPodPresent("[Hermes] Building Hermes from source from tag #{hermestag}...") -+ source[:git] = git -+ source[:tag] = hermestag -+end -+ -+def use_release_tarball(source, version, build_type) -+ # Sample url from Maven: -+ # https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/0.71.0/react-native-artifacts-0.71.0-hermes-ios-debug.tar.gz -+ putsIfPodPresent('[Hermes] Using the release tarball from Maven Central', 'info') -+ source[:http] = release_tarball_url(version, build_type) -+end -+ -+def release_tarball_url(version, build_type) -+ return "https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/#{version}/react-native-artifacts-#{version}-hermes-ios-#{build_type.to_s}.tar.gz" -+end -+ -+def use_nightly_tarball(source, react_native_path, version) -+ putsIfPodPresent('[Hermes] Nightly version, download pre-built for Hermes') -+ destination_path = download_nightly_hermes(react_native_path, version) -+ # set tarball as hermes engine -+ source[:http] = "file://#{destination_path}" -+end -+ -+def putsIfPodPresent(message, level = 'warning') -+ unless Object.const_defined?("Pod::UI") -+ return -+ end -+ -+ case level -+ when 'info' -+ Pod::UI.puts message.green -+ when 'error' -+ Pod::UI.puts message.red -+ else -+ Pod::UI.puts message.yellow -+ end -+end -+ -+# This function downloads the nightly prebuilt version of Hermes based on the passed version -+# and save it in the node_module/react_native/sdks/downloads folder -+# It then returns the path to the hermes tarball -+# -+# Parameters -+# - react_native_path: the path to the React Native folder in node modules. It is used as root path to store the Hermes tarball -+# - version: the version of React Native that requires the Hermes tarball -+# Returns: the path to the downloaded Hermes tarball -+def download_nightly_hermes(react_native_path, version) -+ tarball_url = nightly_tarball_url(version) -+ -+ destination_folder = "#{react_native_path}/sdks/downloads" -+ destination_path = "#{destination_folder}/hermes-ios-#{version}.tar.gz" -+ -+ unless File.exist?(destination_path) -+ # Download to a temporary file first so we don't cache incomplete downloads. -+ tmp_file = "#{destination_folder}/hermes-ios.download" -+ `mkdir -p "#{destination_folder}" && curl "#{tarball_url}" -Lo "#{tmp_file}" && mv "#{tmp_file}" "#{destination_path}"` -+ end -+ return destination_path -+end -+ -+def nightly_tarball_url(version) -+ params = "r=snapshots\&g=com.facebook.react\&a=react-native-artifacts\&c=hermes-ios-debug\&e=tar.gz\&v=#{version}-SNAPSHOT" -+ return "http://oss.sonatype.org/service/local/artifact/maven/redirect\?#{params}" -+end -+ -+def build_hermes_from_source(source, git) -+ putsIfPodPresent('[Hermes] Installing hermes-engine may take slightly longer, building Hermes compiler from source...') -+ source[:git] = git -+ source[:commit] = `git ls-remote https://github.com/facebook/hermes main | cut -f 1`.strip -+end -+ -+# This function checks that Hermes artifact exists. -+# As of now it should check it on the Maven repo. -+# -+# Parameters -+# - version: the version of React Native -+# - build_type: debug or release -+def hermes_artifact_exists(tarball_url) -+ # -L is used to follow redirects, useful for the nightlies -+ # I also needed to wrap the url in quotes to avoid escaping & and ?. -+ return (`curl -o /dev/null --silent -Iw '%{http_code}' -L "#{tarball_url}"` == "200") -+end -diff --git a/node_modules/react-native/third-party-podspecs/boost.podspec b/node_modules/react-native/third-party-podspecs/boost.podspec -index 3d9331c..bbbb738 100644 ---- a/node_modules/react-native/third-party-podspecs/boost.podspec -+++ b/node_modules/react-native/third-party-podspecs/boost.podspec -@@ -10,7 +10,7 @@ Pod::Spec.new do |spec| - spec.homepage = 'http://www.boost.org' - spec.summary = 'Boost provides free peer-reviewed portable C++ source libraries.' - spec.authors = 'Rene Rivera' -- spec.source = { :http => 'https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.bz2', -+ spec.source = { :http => 'https://archives.boost.io/release/1.76.0/source/boost_1_76_0.tar.bz2', - :sha256 => 'f0397ba6e982c4450f27bf32a2a83292aba035b827a5623a14636ea583318c41' } - - # Pinning to the same version as React.podspec.