first commit

This commit is contained in:
2026-03-10 16:18:05 +00:00
commit 11f9c069b5
31635 changed files with 3187747 additions and 0 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,27 @@
/**
* 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: GenerateComponentDescriptorCpp.js
*/
#include <react/renderer/components/FBReactNativeSpec/ComponentDescriptors.h>
#include <react/renderer/core/ConcreteComponentDescriptor.h>
#include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
namespace facebook::react {
void FBReactNativeSpec_registerComponentDescriptorsFromCodegen(
std::shared_ptr<const ComponentDescriptorProviderRegistry> registry) {
registry->add(concreteComponentDescriptorProvider<ActivityIndicatorViewComponentDescriptor>());
registry->add(concreteComponentDescriptorProvider<AndroidDrawerLayoutComponentDescriptor>());
registry->add(concreteComponentDescriptorProvider<AndroidSwipeRefreshLayoutComponentDescriptor>());
registry->add(concreteComponentDescriptorProvider<DebuggingOverlayComponentDescriptor>());
registry->add(concreteComponentDescriptorProvider<PullToRefreshViewComponentDescriptor>());
registry->add(concreteComponentDescriptorProvider<UnimplementedNativeViewComponentDescriptor>());
}
} // namespace facebook::react

View File

@@ -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 <react/renderer/components/FBReactNativeSpec/ShadowNodes.h>
#include <react/renderer/core/ConcreteComponentDescriptor.h>
#include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
namespace facebook::react {
using ActivityIndicatorViewComponentDescriptor = ConcreteComponentDescriptor<ActivityIndicatorViewShadowNode>;
using AndroidDrawerLayoutComponentDescriptor = ConcreteComponentDescriptor<AndroidDrawerLayoutShadowNode>;
using AndroidSwipeRefreshLayoutComponentDescriptor = ConcreteComponentDescriptor<AndroidSwipeRefreshLayoutShadowNode>;
using DebuggingOverlayComponentDescriptor = ConcreteComponentDescriptor<DebuggingOverlayShadowNode>;
using PullToRefreshViewComponentDescriptor = ConcreteComponentDescriptor<PullToRefreshViewShadowNode>;
using UnimplementedNativeViewComponentDescriptor = ConcreteComponentDescriptor<UnimplementedNativeViewShadowNode>;
void FBReactNativeSpec_registerComponentDescriptorsFromCodegen(
std::shared_ptr<const ComponentDescriptorProviderRegistry> registry);
} // namespace facebook::react

View File

@@ -0,0 +1,182 @@
/**
* 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 <react/renderer/components/FBReactNativeSpec/EventEmitters.h>
namespace facebook::react {
void VirtualViewExperimentalEventEmitter::onModeChange(OnModeChange event) const {
dispatchEvent("modeChange", [event=std::move(event)](jsi::Runtime &runtime) {
auto payload = jsi::Object(runtime);
payload.setProperty(runtime, "mode", event.mode);
{
auto targetRect = jsi::Object(runtime);
targetRect.setProperty(runtime, "x", event.targetRect.x);
targetRect.setProperty(runtime, "y", event.targetRect.y);
targetRect.setProperty(runtime, "width", event.targetRect.width);
targetRect.setProperty(runtime, "height", event.targetRect.height);
payload.setProperty(runtime, "targetRect", targetRect);
}
{
auto thresholdRect = jsi::Object(runtime);
thresholdRect.setProperty(runtime, "x", event.thresholdRect.x);
thresholdRect.setProperty(runtime, "y", event.thresholdRect.y);
thresholdRect.setProperty(runtime, "width", event.thresholdRect.width);
thresholdRect.setProperty(runtime, "height", event.thresholdRect.height);
payload.setProperty(runtime, "thresholdRect", thresholdRect);
}
return payload;
});
}
void VirtualViewEventEmitter::onModeChange(OnModeChange event) const {
dispatchEvent("modeChange", [event=std::move(event)](jsi::Runtime &runtime) {
auto payload = jsi::Object(runtime);
payload.setProperty(runtime, "mode", event.mode);
{
auto targetRect = jsi::Object(runtime);
targetRect.setProperty(runtime, "x", event.targetRect.x);
targetRect.setProperty(runtime, "y", event.targetRect.y);
targetRect.setProperty(runtime, "width", event.targetRect.width);
targetRect.setProperty(runtime, "height", event.targetRect.height);
payload.setProperty(runtime, "targetRect", targetRect);
}
{
auto thresholdRect = jsi::Object(runtime);
thresholdRect.setProperty(runtime, "x", event.thresholdRect.x);
thresholdRect.setProperty(runtime, "y", event.thresholdRect.y);
thresholdRect.setProperty(runtime, "width", event.thresholdRect.width);
thresholdRect.setProperty(runtime, "height", event.thresholdRect.height);
payload.setProperty(runtime, "thresholdRect", thresholdRect);
}
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 AndroidSwipeRefreshLayoutEventEmitter::onRefresh(OnRefresh event) const {
dispatchEvent("refresh", [](jsi::Runtime &runtime) {
auto payload = jsi::Object(runtime);
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 PullToRefreshViewEventEmitter::onRefresh(OnRefresh event) const {
dispatchEvent("refresh", [](jsi::Runtime &runtime) {
auto payload = jsi::Object(runtime);
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;
});
}
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;
});
}
} // namespace facebook::react

View File

@@ -0,0 +1,219 @@
/**
* 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 <react/renderer/components/view/ViewEventEmitter.h>
namespace facebook::react {
class VirtualViewExperimentalEventEmitter : public ViewEventEmitter {
public:
using ViewEventEmitter::ViewEventEmitter;
struct OnModeChangeTargetRect {
double x;
double y;
double width;
double height;
};
struct OnModeChangeThresholdRect {
double x;
double y;
double width;
double height;
};
struct OnModeChange {
int mode;
OnModeChangeTargetRect targetRect;
OnModeChangeThresholdRect thresholdRect;
};
void onModeChange(OnModeChange value) const;
};
class VirtualViewEventEmitter : public ViewEventEmitter {
public:
using ViewEventEmitter::ViewEventEmitter;
struct OnModeChangeTargetRect {
double x;
double y;
double width;
double height;
};
struct OnModeChangeThresholdRect {
double x;
double y;
double width;
double height;
};
struct OnModeChange {
int mode;
OnModeChangeTargetRect targetRect;
OnModeChangeThresholdRect thresholdRect;
};
void onModeChange(OnModeChange value) const;
};
class ActivityIndicatorViewEventEmitter : public ViewEventEmitter {
public:
using ViewEventEmitter::ViewEventEmitter;
};
class 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 AndroidHorizontalScrollContentViewEventEmitter : public ViewEventEmitter {
public:
using ViewEventEmitter::ViewEventEmitter;
};
class AndroidSwipeRefreshLayoutEventEmitter : public ViewEventEmitter {
public:
using ViewEventEmitter::ViewEventEmitter;
struct OnRefresh {
};
void onRefresh(OnRefresh value) const;
};
class AndroidSwitchEventEmitter : public ViewEventEmitter {
public:
using ViewEventEmitter::ViewEventEmitter;
struct OnChange {
bool value;
int target;
};
void onChange(OnChange value) const;
};
class DebuggingOverlayEventEmitter : public ViewEventEmitter {
public:
using ViewEventEmitter::ViewEventEmitter;
};
class AndroidProgressBarEventEmitter : public ViewEventEmitter {
public:
using ViewEventEmitter::ViewEventEmitter;
};
class PullToRefreshViewEventEmitter : public ViewEventEmitter {
public:
using ViewEventEmitter::ViewEventEmitter;
struct OnRefresh {
};
void onRefresh(OnRefresh value) const;
};
class InputAccessoryEventEmitter : public ViewEventEmitter {
public:
using ViewEventEmitter::ViewEventEmitter;
};
class 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;
};
class SafeAreaViewEventEmitter : public ViewEventEmitter {
public:
using ViewEventEmitter::ViewEventEmitter;
};
class SwitchEventEmitter : public ViewEventEmitter {
public:
using ViewEventEmitter::ViewEventEmitter;
struct OnChange {
bool value;
int target;
};
void onChange(OnChange value) const;
};
class UnimplementedNativeViewEventEmitter : public ViewEventEmitter {
public:
using ViewEventEmitter::ViewEventEmitter;
};
} // namespace facebook::react

View File

@@ -0,0 +1,875 @@
/**
* 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 <react/renderer/components/FBReactNativeSpec/Props.h>
#include <react/renderer/core/PropsParserContext.h>
#include <react/renderer/core/graphicsConversions.h>
#include <react/renderer/core/propsConversions.h>
#include <react/renderer/debug/debugStringConvertibleUtils.h>
namespace facebook::react {
VirtualViewExperimentalProps::VirtualViewExperimentalProps(
const PropsParserContext &context,
const VirtualViewExperimentalProps &sourceProps,
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
initialHidden(convertRawProp(context, rawProps, "initialHidden", sourceProps.initialHidden, {false})),
renderState(convertRawProp(context, rawProps, "renderState", sourceProps.renderState, {0})),
removeClippedSubviews(convertRawProp(context, rawProps, "removeClippedSubviews", sourceProps.removeClippedSubviews, {false})) {}
#ifdef RN_SERIALIZABLE_STATE
ComponentName VirtualViewExperimentalProps::getDiffPropsImplementationTarget() const {
return "VirtualViewExperimental";
}
folly::dynamic VirtualViewExperimentalProps::getDiffProps(
const Props* prevProps) const {
static const auto defaultProps = VirtualViewExperimentalProps();
const VirtualViewExperimentalProps* oldProps = prevProps == nullptr
? &defaultProps
: static_cast<const VirtualViewExperimentalProps*>(prevProps);
if (this == oldProps) {
return folly::dynamic::object();
}
folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
if (initialHidden != oldProps->initialHidden) {
result["initialHidden"] = initialHidden;
}
if (renderState != oldProps->renderState) {
result["renderState"] = renderState;
}
if (removeClippedSubviews != oldProps->removeClippedSubviews) {
result["removeClippedSubviews"] = removeClippedSubviews;
}
return result;
}
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList VirtualViewExperimentalProps::getDebugProps() const {
return ViewProps::getDebugProps() +
SharedDebugStringConvertibleList{
debugStringConvertibleItem("initialHidden", initialHidden, false),
debugStringConvertibleItem("renderState", renderState, 0),
debugStringConvertibleItem("removeClippedSubviews", removeClippedSubviews, false)
};
}
#endif
VirtualViewProps::VirtualViewProps(
const PropsParserContext &context,
const VirtualViewProps &sourceProps,
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
initialHidden(convertRawProp(context, rawProps, "initialHidden", sourceProps.initialHidden, {false})),
removeClippedSubviews(convertRawProp(context, rawProps, "removeClippedSubviews", sourceProps.removeClippedSubviews, {false})),
renderState(convertRawProp(context, rawProps, "renderState", sourceProps.renderState, {0})) {}
#ifdef RN_SERIALIZABLE_STATE
ComponentName VirtualViewProps::getDiffPropsImplementationTarget() const {
return "VirtualView";
}
folly::dynamic VirtualViewProps::getDiffProps(
const Props* prevProps) const {
static const auto defaultProps = VirtualViewProps();
const VirtualViewProps* oldProps = prevProps == nullptr
? &defaultProps
: static_cast<const VirtualViewProps*>(prevProps);
if (this == oldProps) {
return folly::dynamic::object();
}
folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
if (initialHidden != oldProps->initialHidden) {
result["initialHidden"] = initialHidden;
}
if (removeClippedSubviews != oldProps->removeClippedSubviews) {
result["removeClippedSubviews"] = removeClippedSubviews;
}
if (renderState != oldProps->renderState) {
result["renderState"] = renderState;
}
return result;
}
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList VirtualViewProps::getDebugProps() const {
return ViewProps::getDebugProps() +
SharedDebugStringConvertibleList{
debugStringConvertibleItem("initialHidden", initialHidden, false),
debugStringConvertibleItem("removeClippedSubviews", removeClippedSubviews, false),
debugStringConvertibleItem("renderState", renderState, 0)
};
}
#endif
ActivityIndicatorViewProps::ActivityIndicatorViewProps(
const PropsParserContext &context,
const ActivityIndicatorViewProps &sourceProps,
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
hidesWhenStopped(convertRawProp(context, rawProps, "hidesWhenStopped", sourceProps.hidesWhenStopped, {true})),
animating(convertRawProp(context, rawProps, "animating", sourceProps.animating, {true})),
color(convertRawProp(context, rawProps, "color", sourceProps.color, {})),
size(convertRawProp(context, rawProps, "size", sourceProps.size, {ActivityIndicatorViewSize::Small})) {}
#ifdef RN_SERIALIZABLE_STATE
ComponentName ActivityIndicatorViewProps::getDiffPropsImplementationTarget() const {
return "ActivityIndicatorView";
}
folly::dynamic ActivityIndicatorViewProps::getDiffProps(
const Props* prevProps) const {
static const auto defaultProps = ActivityIndicatorViewProps();
const ActivityIndicatorViewProps* oldProps = prevProps == nullptr
? &defaultProps
: static_cast<const ActivityIndicatorViewProps*>(prevProps);
if (this == oldProps) {
return folly::dynamic::object();
}
folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
if (hidesWhenStopped != oldProps->hidesWhenStopped) {
result["hidesWhenStopped"] = hidesWhenStopped;
}
if (animating != oldProps->animating) {
result["animating"] = animating;
}
if (color != oldProps->color) {
result["color"] = *color;
}
if (size != oldProps->size) {
result["size"] = toDynamic(size);
}
return result;
}
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList ActivityIndicatorViewProps::getDebugProps() const {
return ViewProps::getDebugProps() +
SharedDebugStringConvertibleList{
debugStringConvertibleItem("hidesWhenStopped", hidesWhenStopped, true),
debugStringConvertibleItem("animating", animating, true),
debugStringConvertibleItem("color", color),
debugStringConvertibleItem("size", size, ActivityIndicatorViewSize::Small)
};
}
#endif
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, {})) {}
#ifdef RN_SERIALIZABLE_STATE
ComponentName AndroidDrawerLayoutProps::getDiffPropsImplementationTarget() const {
return "AndroidDrawerLayout";
}
folly::dynamic AndroidDrawerLayoutProps::getDiffProps(
const Props* prevProps) const {
static const auto defaultProps = AndroidDrawerLayoutProps();
const AndroidDrawerLayoutProps* oldProps = prevProps == nullptr
? &defaultProps
: static_cast<const AndroidDrawerLayoutProps*>(prevProps);
if (this == oldProps) {
return folly::dynamic::object();
}
folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
if (keyboardDismissMode != oldProps->keyboardDismissMode) {
result["keyboardDismissMode"] = toDynamic(keyboardDismissMode);
}
if (drawerBackgroundColor != oldProps->drawerBackgroundColor) {
result["drawerBackgroundColor"] = *drawerBackgroundColor;
}
if (drawerPosition != oldProps->drawerPosition) {
result["drawerPosition"] = toDynamic(drawerPosition);
}
if ((drawerWidth != oldProps->drawerWidth) && !(std::isnan(drawerWidth) && std::isnan(oldProps->drawerWidth))) {
result["drawerWidth"] = drawerWidth;
}
if (drawerLockMode != oldProps->drawerLockMode) {
result["drawerLockMode"] = toDynamic(drawerLockMode);
}
if (statusBarBackgroundColor != oldProps->statusBarBackgroundColor) {
result["statusBarBackgroundColor"] = *statusBarBackgroundColor;
}
return result;
}
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList AndroidDrawerLayoutProps::getDebugProps() const {
return ViewProps::getDebugProps() +
SharedDebugStringConvertibleList{
debugStringConvertibleItem("keyboardDismissMode", keyboardDismissMode, AndroidDrawerLayoutKeyboardDismissMode::None),
debugStringConvertibleItem("drawerBackgroundColor", drawerBackgroundColor),
debugStringConvertibleItem("drawerPosition", drawerPosition, AndroidDrawerLayoutDrawerPosition::Left),
debugStringConvertibleItem("drawerWidth", drawerWidth),
debugStringConvertibleItem("drawerLockMode", drawerLockMode, AndroidDrawerLayoutDrawerLockMode::Unlocked),
debugStringConvertibleItem("statusBarBackgroundColor", statusBarBackgroundColor)
};
}
#endif
AndroidHorizontalScrollContentViewProps::AndroidHorizontalScrollContentViewProps(
const PropsParserContext &context,
const AndroidHorizontalScrollContentViewProps &sourceProps,
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
removeClippedSubviews(convertRawProp(context, rawProps, "removeClippedSubviews", sourceProps.removeClippedSubviews, {false})) {}
#ifdef RN_SERIALIZABLE_STATE
ComponentName AndroidHorizontalScrollContentViewProps::getDiffPropsImplementationTarget() const {
return "AndroidHorizontalScrollContentView";
}
folly::dynamic AndroidHorizontalScrollContentViewProps::getDiffProps(
const Props* prevProps) const {
static const auto defaultProps = AndroidHorizontalScrollContentViewProps();
const AndroidHorizontalScrollContentViewProps* oldProps = prevProps == nullptr
? &defaultProps
: static_cast<const AndroidHorizontalScrollContentViewProps*>(prevProps);
if (this == oldProps) {
return folly::dynamic::object();
}
folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
if (removeClippedSubviews != oldProps->removeClippedSubviews) {
result["removeClippedSubviews"] = removeClippedSubviews;
}
return result;
}
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList AndroidHorizontalScrollContentViewProps::getDebugProps() const {
return ViewProps::getDebugProps() +
SharedDebugStringConvertibleList{
debugStringConvertibleItem("removeClippedSubviews", removeClippedSubviews, false)
};
}
#endif
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})) {}
#ifdef RN_SERIALIZABLE_STATE
ComponentName AndroidSwipeRefreshLayoutProps::getDiffPropsImplementationTarget() const {
return "AndroidSwipeRefreshLayout";
}
folly::dynamic AndroidSwipeRefreshLayoutProps::getDiffProps(
const Props* prevProps) const {
static const auto defaultProps = AndroidSwipeRefreshLayoutProps();
const AndroidSwipeRefreshLayoutProps* oldProps = prevProps == nullptr
? &defaultProps
: static_cast<const AndroidSwipeRefreshLayoutProps*>(prevProps);
if (this == oldProps) {
return folly::dynamic::object();
}
folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
if (enabled != oldProps->enabled) {
result["enabled"] = enabled;
}
if (colors != oldProps->colors) {
result["colors"] = toDynamic(colors);
}
if (progressBackgroundColor != oldProps->progressBackgroundColor) {
result["progressBackgroundColor"] = *progressBackgroundColor;
}
if (size != oldProps->size) {
result["size"] = toDynamic(size);
}
if ((progressViewOffset != oldProps->progressViewOffset) && !(std::isnan(progressViewOffset) && std::isnan(oldProps->progressViewOffset))) {
result["progressViewOffset"] = progressViewOffset;
}
if (refreshing != oldProps->refreshing) {
result["refreshing"] = refreshing;
}
return result;
}
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList AndroidSwipeRefreshLayoutProps::getDebugProps() const {
return ViewProps::getDebugProps() +
SharedDebugStringConvertibleList{
debugStringConvertibleItem("enabled", enabled, true),
debugStringConvertibleItem("colors", colors),
debugStringConvertibleItem("progressBackgroundColor", progressBackgroundColor),
debugStringConvertibleItem("size", size, AndroidSwipeRefreshLayoutSize::Default),
debugStringConvertibleItem("progressViewOffset", progressViewOffset, 0.0),
debugStringConvertibleItem("refreshing", refreshing, false)
};
}
#endif
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, {})) {}
#ifdef RN_SERIALIZABLE_STATE
ComponentName AndroidSwitchProps::getDiffPropsImplementationTarget() const {
return "AndroidSwitch";
}
folly::dynamic AndroidSwitchProps::getDiffProps(
const Props* prevProps) const {
static const auto defaultProps = AndroidSwitchProps();
const AndroidSwitchProps* oldProps = prevProps == nullptr
? &defaultProps
: static_cast<const AndroidSwitchProps*>(prevProps);
if (this == oldProps) {
return folly::dynamic::object();
}
folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
if (disabled != oldProps->disabled) {
result["disabled"] = disabled;
}
if (enabled != oldProps->enabled) {
result["enabled"] = enabled;
}
if (thumbColor != oldProps->thumbColor) {
result["thumbColor"] = *thumbColor;
}
if (trackColorForFalse != oldProps->trackColorForFalse) {
result["trackColorForFalse"] = *trackColorForFalse;
}
if (trackColorForTrue != oldProps->trackColorForTrue) {
result["trackColorForTrue"] = *trackColorForTrue;
}
if (value != oldProps->value) {
result["value"] = value;
}
if (on != oldProps->on) {
result["on"] = on;
}
if (thumbTintColor != oldProps->thumbTintColor) {
result["thumbTintColor"] = *thumbTintColor;
}
if (trackTintColor != oldProps->trackTintColor) {
result["trackTintColor"] = *trackTintColor;
}
return result;
}
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList AndroidSwitchProps::getDebugProps() const {
return ViewProps::getDebugProps() +
SharedDebugStringConvertibleList{
debugStringConvertibleItem("disabled", disabled, false),
debugStringConvertibleItem("enabled", enabled, true),
debugStringConvertibleItem("thumbColor", thumbColor),
debugStringConvertibleItem("trackColorForFalse", trackColorForFalse),
debugStringConvertibleItem("trackColorForTrue", trackColorForTrue),
debugStringConvertibleItem("value", value, false),
debugStringConvertibleItem("on", on, false),
debugStringConvertibleItem("thumbTintColor", thumbTintColor),
debugStringConvertibleItem("trackTintColor", trackTintColor)
};
}
#endif
DebuggingOverlayProps::DebuggingOverlayProps(
const PropsParserContext &context,
const DebuggingOverlayProps &sourceProps,
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps)
{}
#ifdef RN_SERIALIZABLE_STATE
ComponentName DebuggingOverlayProps::getDiffPropsImplementationTarget() const {
return "DebuggingOverlay";
}
folly::dynamic DebuggingOverlayProps::getDiffProps(
const Props* prevProps) const {
static const auto defaultProps = DebuggingOverlayProps();
const DebuggingOverlayProps* oldProps = prevProps == nullptr
? &defaultProps
: static_cast<const DebuggingOverlayProps*>(prevProps);
if (this == oldProps) {
return folly::dynamic::object();
}
folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
return result;
}
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList DebuggingOverlayProps::getDebugProps() const {
return ViewProps::getDebugProps();
}
#endif
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, {std::string{""}})) {}
#ifdef RN_SERIALIZABLE_STATE
ComponentName AndroidProgressBarProps::getDiffPropsImplementationTarget() const {
return "AndroidProgressBar";
}
folly::dynamic AndroidProgressBarProps::getDiffProps(
const Props* prevProps) const {
static const auto defaultProps = AndroidProgressBarProps();
const AndroidProgressBarProps* oldProps = prevProps == nullptr
? &defaultProps
: static_cast<const AndroidProgressBarProps*>(prevProps);
if (this == oldProps) {
return folly::dynamic::object();
}
folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
if (styleAttr != oldProps->styleAttr) {
result["styleAttr"] = styleAttr;
}
if (typeAttr != oldProps->typeAttr) {
result["typeAttr"] = typeAttr;
}
if (indeterminate != oldProps->indeterminate) {
result["indeterminate"] = indeterminate;
}
if ((progress != oldProps->progress) && !(std::isnan(progress) && std::isnan(oldProps->progress))) {
result["progress"] = progress;
}
if (animating != oldProps->animating) {
result["animating"] = animating;
}
if (color != oldProps->color) {
result["color"] = *color;
}
if (testID != oldProps->testID) {
result["testID"] = testID;
}
return result;
}
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList AndroidProgressBarProps::getDebugProps() const {
return ViewProps::getDebugProps() +
SharedDebugStringConvertibleList{
debugStringConvertibleItem("styleAttr", styleAttr),
debugStringConvertibleItem("typeAttr", typeAttr),
debugStringConvertibleItem("indeterminate", indeterminate, false),
debugStringConvertibleItem("progress", progress, 0.0),
debugStringConvertibleItem("animating", animating, true),
debugStringConvertibleItem("color", color),
debugStringConvertibleItem("testID", testID, std::string{""})
};
}
#endif
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})) {}
#ifdef RN_SERIALIZABLE_STATE
ComponentName PullToRefreshViewProps::getDiffPropsImplementationTarget() const {
return "PullToRefreshView";
}
folly::dynamic PullToRefreshViewProps::getDiffProps(
const Props* prevProps) const {
static const auto defaultProps = PullToRefreshViewProps();
const PullToRefreshViewProps* oldProps = prevProps == nullptr
? &defaultProps
: static_cast<const PullToRefreshViewProps*>(prevProps);
if (this == oldProps) {
return folly::dynamic::object();
}
folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
if (tintColor != oldProps->tintColor) {
result["tintColor"] = *tintColor;
}
if (titleColor != oldProps->titleColor) {
result["titleColor"] = *titleColor;
}
if (title != oldProps->title) {
result["title"] = title;
}
if ((progressViewOffset != oldProps->progressViewOffset) && !(std::isnan(progressViewOffset) && std::isnan(oldProps->progressViewOffset))) {
result["progressViewOffset"] = progressViewOffset;
}
if (refreshing != oldProps->refreshing) {
result["refreshing"] = refreshing;
}
return result;
}
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList PullToRefreshViewProps::getDebugProps() const {
return ViewProps::getDebugProps() +
SharedDebugStringConvertibleList{
debugStringConvertibleItem("tintColor", tintColor),
debugStringConvertibleItem("titleColor", titleColor),
debugStringConvertibleItem("title", title),
debugStringConvertibleItem("progressViewOffset", progressViewOffset, 0.0),
debugStringConvertibleItem("refreshing", refreshing, false)
};
}
#endif
InputAccessoryProps::InputAccessoryProps(
const PropsParserContext &context,
const InputAccessoryProps &sourceProps,
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
backgroundColor(convertRawProp(context, rawProps, "backgroundColor", sourceProps.backgroundColor, {})) {}
#ifdef RN_SERIALIZABLE_STATE
ComponentName InputAccessoryProps::getDiffPropsImplementationTarget() const {
return "InputAccessory";
}
folly::dynamic InputAccessoryProps::getDiffProps(
const Props* prevProps) const {
static const auto defaultProps = InputAccessoryProps();
const InputAccessoryProps* oldProps = prevProps == nullptr
? &defaultProps
: static_cast<const InputAccessoryProps*>(prevProps);
if (this == oldProps) {
return folly::dynamic::object();
}
folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
if (backgroundColor != oldProps->backgroundColor) {
result["backgroundColor"] = *backgroundColor;
}
return result;
}
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList InputAccessoryProps::getDebugProps() const {
return ViewProps::getDebugProps() +
SharedDebugStringConvertibleList{
debugStringConvertibleItem("backgroundColor", backgroundColor)
};
}
#endif
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})),
navigationBarTranslucent(convertRawProp(context, rawProps, "navigationBarTranslucent", sourceProps.navigationBarTranslucent, {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})),
allowSwipeDismissal(convertRawProp(context, rawProps, "allowSwipeDismissal", sourceProps.allowSwipeDismissal, {false})),
supportedOrientations(convertRawProp(context, rawProps, "supportedOrientations", ModalHostViewSupportedOrientationsMaskWrapped{ .value = sourceProps.supportedOrientations }, {static_cast<ModalHostViewSupportedOrientationsMask>(ModalHostViewSupportedOrientations::Portrait)}).value),
identifier(convertRawProp(context, rawProps, "identifier", sourceProps.identifier, {0})) {}
#ifdef RN_SERIALIZABLE_STATE
ComponentName ModalHostViewProps::getDiffPropsImplementationTarget() const {
return "ModalHostView";
}
folly::dynamic ModalHostViewProps::getDiffProps(
const Props* prevProps) const {
static const auto defaultProps = ModalHostViewProps();
const ModalHostViewProps* oldProps = prevProps == nullptr
? &defaultProps
: static_cast<const ModalHostViewProps*>(prevProps);
if (this == oldProps) {
return folly::dynamic::object();
}
folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
if (animationType != oldProps->animationType) {
result["animationType"] = toDynamic(animationType);
}
if (presentationStyle != oldProps->presentationStyle) {
result["presentationStyle"] = toDynamic(presentationStyle);
}
if (transparent != oldProps->transparent) {
result["transparent"] = transparent;
}
if (statusBarTranslucent != oldProps->statusBarTranslucent) {
result["statusBarTranslucent"] = statusBarTranslucent;
}
if (navigationBarTranslucent != oldProps->navigationBarTranslucent) {
result["navigationBarTranslucent"] = navigationBarTranslucent;
}
if (hardwareAccelerated != oldProps->hardwareAccelerated) {
result["hardwareAccelerated"] = hardwareAccelerated;
}
if (visible != oldProps->visible) {
result["visible"] = visible;
}
if (animated != oldProps->animated) {
result["animated"] = animated;
}
if (allowSwipeDismissal != oldProps->allowSwipeDismissal) {
result["allowSwipeDismissal"] = allowSwipeDismissal;
}
if (supportedOrientations != oldProps->supportedOrientations) {
result["supportedOrientations"] = toDynamic(supportedOrientations);
}
if (identifier != oldProps->identifier) {
result["identifier"] = identifier;
}
return result;
}
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList ModalHostViewProps::getDebugProps() const {
return ViewProps::getDebugProps() +
SharedDebugStringConvertibleList{
debugStringConvertibleItem("animationType", animationType, ModalHostViewAnimationType::None),
debugStringConvertibleItem("presentationStyle", presentationStyle, ModalHostViewPresentationStyle::FullScreen),
debugStringConvertibleItem("transparent", transparent, false),
debugStringConvertibleItem("statusBarTranslucent", statusBarTranslucent, false),
debugStringConvertibleItem("navigationBarTranslucent", navigationBarTranslucent, false),
debugStringConvertibleItem("hardwareAccelerated", hardwareAccelerated, false),
debugStringConvertibleItem("visible", visible, false),
debugStringConvertibleItem("animated", animated, false),
debugStringConvertibleItem("allowSwipeDismissal", allowSwipeDismissal, false),
debugStringConvertibleItem("supportedOrientations", supportedOrientations, static_cast<ModalHostViewSupportedOrientationsMask>(ModalHostViewSupportedOrientations::Portrait)),
debugStringConvertibleItem("identifier", identifier, 0)
};
}
#endif
SafeAreaViewProps::SafeAreaViewProps(
const PropsParserContext &context,
const SafeAreaViewProps &sourceProps,
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps)
{}
#ifdef RN_SERIALIZABLE_STATE
ComponentName SafeAreaViewProps::getDiffPropsImplementationTarget() const {
return "SafeAreaView";
}
folly::dynamic SafeAreaViewProps::getDiffProps(
const Props* prevProps) const {
static const auto defaultProps = SafeAreaViewProps();
const SafeAreaViewProps* oldProps = prevProps == nullptr
? &defaultProps
: static_cast<const SafeAreaViewProps*>(prevProps);
if (this == oldProps) {
return folly::dynamic::object();
}
folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
return result;
}
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList SafeAreaViewProps::getDebugProps() const {
return ViewProps::getDebugProps();
}
#endif
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, {})) {}
#ifdef RN_SERIALIZABLE_STATE
ComponentName SwitchProps::getDiffPropsImplementationTarget() const {
return "Switch";
}
folly::dynamic SwitchProps::getDiffProps(
const Props* prevProps) const {
static const auto defaultProps = SwitchProps();
const SwitchProps* oldProps = prevProps == nullptr
? &defaultProps
: static_cast<const SwitchProps*>(prevProps);
if (this == oldProps) {
return folly::dynamic::object();
}
folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
if (disabled != oldProps->disabled) {
result["disabled"] = disabled;
}
if (value != oldProps->value) {
result["value"] = value;
}
if (tintColor != oldProps->tintColor) {
result["tintColor"] = *tintColor;
}
if (onTintColor != oldProps->onTintColor) {
result["onTintColor"] = *onTintColor;
}
if (thumbTintColor != oldProps->thumbTintColor) {
result["thumbTintColor"] = *thumbTintColor;
}
if (thumbColor != oldProps->thumbColor) {
result["thumbColor"] = *thumbColor;
}
if (trackColorForFalse != oldProps->trackColorForFalse) {
result["trackColorForFalse"] = *trackColorForFalse;
}
if (trackColorForTrue != oldProps->trackColorForTrue) {
result["trackColorForTrue"] = *trackColorForTrue;
}
return result;
}
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList SwitchProps::getDebugProps() const {
return ViewProps::getDebugProps() +
SharedDebugStringConvertibleList{
debugStringConvertibleItem("disabled", disabled, false),
debugStringConvertibleItem("value", value, false),
debugStringConvertibleItem("tintColor", tintColor),
debugStringConvertibleItem("onTintColor", onTintColor),
debugStringConvertibleItem("thumbTintColor", thumbTintColor),
debugStringConvertibleItem("thumbColor", thumbColor),
debugStringConvertibleItem("trackColorForFalse", trackColorForFalse),
debugStringConvertibleItem("trackColorForTrue", trackColorForTrue)
};
}
#endif
UnimplementedNativeViewProps::UnimplementedNativeViewProps(
const PropsParserContext &context,
const UnimplementedNativeViewProps &sourceProps,
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
name(convertRawProp(context, rawProps, "name", sourceProps.name, {std::string{""}})) {}
#ifdef RN_SERIALIZABLE_STATE
ComponentName UnimplementedNativeViewProps::getDiffPropsImplementationTarget() const {
return "UnimplementedNativeView";
}
folly::dynamic UnimplementedNativeViewProps::getDiffProps(
const Props* prevProps) const {
static const auto defaultProps = UnimplementedNativeViewProps();
const UnimplementedNativeViewProps* oldProps = prevProps == nullptr
? &defaultProps
: static_cast<const UnimplementedNativeViewProps*>(prevProps);
if (this == oldProps) {
return folly::dynamic::object();
}
folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
if (name != oldProps->name) {
result["name"] = name;
}
return result;
}
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList UnimplementedNativeViewProps::getDebugProps() const {
return ViewProps::getDebugProps() +
SharedDebugStringConvertibleList{
debugStringConvertibleItem("name", name, std::string{""})
};
}
#endif
} // namespace facebook::react

View File

@@ -0,0 +1,615 @@
/**
* 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 <cinttypes>
#include <react/renderer/components/view/ViewProps.h>
#include <react/renderer/core/PropsParserContext.h>
#include <react/renderer/debug/DebugStringConvertible.h>
#include <react/renderer/graphics/Color.h>
#include <vector>
namespace facebook::react {
class VirtualViewExperimentalProps final : public ViewProps {
public:
VirtualViewExperimentalProps() = default;
VirtualViewExperimentalProps(const PropsParserContext& context, const VirtualViewExperimentalProps &sourceProps, const RawProps &rawProps);
#pragma mark - Props
bool initialHidden{false};
int renderState{0};
bool removeClippedSubviews{false};
#ifdef RN_SERIALIZABLE_STATE
ComponentName getDiffPropsImplementationTarget() const override;
folly::dynamic getDiffProps(const Props* prevProps) const override;
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList getDebugProps() const override;
#endif
};
class VirtualViewProps final : public ViewProps {
public:
VirtualViewProps() = default;
VirtualViewProps(const PropsParserContext& context, const VirtualViewProps &sourceProps, const RawProps &rawProps);
#pragma mark - Props
bool initialHidden{false};
bool removeClippedSubviews{false};
int renderState{0};
#ifdef RN_SERIALIZABLE_STATE
ComponentName getDiffPropsImplementationTarget() const override;
folly::dynamic getDiffProps(const Props* prevProps) const override;
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList getDebugProps() const override;
#endif
};
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";
}
}
#ifdef RN_SERIALIZABLE_STATE
static inline folly::dynamic toDynamic(const ActivityIndicatorViewSize &value) {
return toString(value);
}
#endif
class ActivityIndicatorViewProps final : public ViewProps {
public:
ActivityIndicatorViewProps() = default;
ActivityIndicatorViewProps(const PropsParserContext& context, const ActivityIndicatorViewProps &sourceProps, const RawProps &rawProps);
#pragma mark - Props
bool hidesWhenStopped{true};
bool animating{true};
SharedColor color{};
ActivityIndicatorViewSize size{ActivityIndicatorViewSize::Small};
#ifdef RN_SERIALIZABLE_STATE
ComponentName getDiffPropsImplementationTarget() const override;
folly::dynamic getDiffProps(const Props* prevProps) const override;
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList getDebugProps() const override;
#endif
};
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";
}
}
#ifdef RN_SERIALIZABLE_STATE
static inline folly::dynamic toDynamic(const AndroidDrawerLayoutKeyboardDismissMode &value) {
return toString(value);
}
#endif
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";
}
}
#ifdef RN_SERIALIZABLE_STATE
static inline folly::dynamic toDynamic(const AndroidDrawerLayoutDrawerPosition &value) {
return toString(value);
}
#endif
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";
}
}
#ifdef RN_SERIALIZABLE_STATE
static inline folly::dynamic toDynamic(const AndroidDrawerLayoutDrawerLockMode &value) {
return toString(value);
}
#endif
class 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{};
#ifdef RN_SERIALIZABLE_STATE
ComponentName getDiffPropsImplementationTarget() const override;
folly::dynamic getDiffProps(const Props* prevProps) const override;
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList getDebugProps() const override;
#endif
};
class AndroidHorizontalScrollContentViewProps final : public ViewProps {
public:
AndroidHorizontalScrollContentViewProps() = default;
AndroidHorizontalScrollContentViewProps(const PropsParserContext& context, const AndroidHorizontalScrollContentViewProps &sourceProps, const RawProps &rawProps);
#pragma mark - Props
bool removeClippedSubviews{false};
#ifdef RN_SERIALIZABLE_STATE
ComponentName getDiffPropsImplementationTarget() const override;
folly::dynamic getDiffProps(const Props* prevProps) const override;
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList getDebugProps() const override;
#endif
};
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";
}
}
#ifdef RN_SERIALIZABLE_STATE
static inline folly::dynamic toDynamic(const AndroidSwipeRefreshLayoutSize &value) {
return toString(value);
}
#endif
class 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<SharedColor> colors{};
SharedColor progressBackgroundColor{};
AndroidSwipeRefreshLayoutSize size{AndroidSwipeRefreshLayoutSize::Default};
Float progressViewOffset{0.0};
bool refreshing{false};
#ifdef RN_SERIALIZABLE_STATE
ComponentName getDiffPropsImplementationTarget() const override;
folly::dynamic getDiffProps(const Props* prevProps) const override;
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList getDebugProps() const override;
#endif
};
class 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{};
#ifdef RN_SERIALIZABLE_STATE
ComponentName getDiffPropsImplementationTarget() const override;
folly::dynamic getDiffProps(const Props* prevProps) const override;
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList getDebugProps() const override;
#endif
};
class DebuggingOverlayProps final : public ViewProps {
public:
DebuggingOverlayProps() = default;
DebuggingOverlayProps(const PropsParserContext& context, const DebuggingOverlayProps &sourceProps, const RawProps &rawProps);
#pragma mark - Props
#ifdef RN_SERIALIZABLE_STATE
ComponentName getDiffPropsImplementationTarget() const override;
folly::dynamic getDiffProps(const Props* prevProps) const override;
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList getDebugProps() const override;
#endif
};
class 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{std::string{""}};
#ifdef RN_SERIALIZABLE_STATE
ComponentName getDiffPropsImplementationTarget() const override;
folly::dynamic getDiffProps(const Props* prevProps) const override;
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList getDebugProps() const override;
#endif
};
class 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};
#ifdef RN_SERIALIZABLE_STATE
ComponentName getDiffPropsImplementationTarget() const override;
folly::dynamic getDiffProps(const Props* prevProps) const override;
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList getDebugProps() const override;
#endif
};
class InputAccessoryProps final : public ViewProps {
public:
InputAccessoryProps() = default;
InputAccessoryProps(const PropsParserContext& context, const InputAccessoryProps &sourceProps, const RawProps &rawProps);
#pragma mark - Props
SharedColor backgroundColor{};
#ifdef RN_SERIALIZABLE_STATE
ComponentName getDiffPropsImplementationTarget() const override;
folly::dynamic getDiffProps(const Props* prevProps) const override;
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList getDebugProps() const override;
#endif
};
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";
}
}
#ifdef RN_SERIALIZABLE_STATE
static inline folly::dynamic toDynamic(const ModalHostViewAnimationType &value) {
return toString(value);
}
#endif
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";
}
}
#ifdef RN_SERIALIZABLE_STATE
static inline folly::dynamic toDynamic(const ModalHostViewPresentationStyle &value) {
return toString(value);
}
#endif
using ModalHostViewSupportedOrientationsMask = uint32_t;
struct ModalHostViewSupportedOrientationsMaskWrapped {
ModalHostViewSupportedOrientationsMask value;
};
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<ModalHostViewSupportedOrientationsMask>(rhs);
}
constexpr ModalHostViewSupportedOrientationsMask operator|(
ModalHostViewSupportedOrientationsMask const lhs,
enum ModalHostViewSupportedOrientations const rhs) {
return lhs | static_cast<ModalHostViewSupportedOrientationsMask>(rhs);
}
constexpr void operator|=(
ModalHostViewSupportedOrientationsMask &lhs,
enum ModalHostViewSupportedOrientations const rhs) {
lhs = lhs | static_cast<ModalHostViewSupportedOrientationsMask>(rhs);
}
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, ModalHostViewSupportedOrientationsMaskWrapped &wrapped) {
auto items = std::vector<std::string>{value};
for (const auto &item : items) {
if (item == "portrait") {
wrapped.value |= ModalHostViewSupportedOrientations::Portrait;
continue;
}
if (item == "portrait-upside-down") {
wrapped.value |= ModalHostViewSupportedOrientations::PortraitUpsideDown;
continue;
}
if (item == "landscape") {
wrapped.value |= ModalHostViewSupportedOrientations::Landscape;
continue;
}
if (item == "landscape-left") {
wrapped.value |= ModalHostViewSupportedOrientations::LandscapeLeft;
continue;
}
if (item == "landscape-right") {
wrapped.value |= ModalHostViewSupportedOrientations::LandscapeRight;
continue;
}
abort();
}
}
static inline std::string toString(const ModalHostViewSupportedOrientationsMaskWrapped &wrapped) {
auto result = std::string{};
auto separator = std::string{", "};
if (wrapped.value & ModalHostViewSupportedOrientations::Portrait) {
result += "portrait" + separator;
}
if (wrapped.value & ModalHostViewSupportedOrientations::PortraitUpsideDown) {
result += "portrait-upside-down" + separator;
}
if (wrapped.value & ModalHostViewSupportedOrientations::Landscape) {
result += "landscape" + separator;
}
if (wrapped.value & ModalHostViewSupportedOrientations::LandscapeLeft) {
result += "landscape-left" + separator;
}
if (wrapped.value & ModalHostViewSupportedOrientations::LandscapeRight) {
result += "landscape-right" + separator;
}
if (!result.empty()) {
result.erase(result.length() - separator.length());
}
return result;
}
class 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 navigationBarTranslucent{false};
bool hardwareAccelerated{false};
bool visible{false};
bool animated{false};
bool allowSwipeDismissal{false};
ModalHostViewSupportedOrientationsMask supportedOrientations{static_cast<ModalHostViewSupportedOrientationsMask>(ModalHostViewSupportedOrientations::Portrait)};
int identifier{0};
#ifdef RN_SERIALIZABLE_STATE
ComponentName getDiffPropsImplementationTarget() const override;
folly::dynamic getDiffProps(const Props* prevProps) const override;
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList getDebugProps() const override;
#endif
};
class SafeAreaViewProps final : public ViewProps {
public:
SafeAreaViewProps() = default;
SafeAreaViewProps(const PropsParserContext& context, const SafeAreaViewProps &sourceProps, const RawProps &rawProps);
#pragma mark - Props
#ifdef RN_SERIALIZABLE_STATE
ComponentName getDiffPropsImplementationTarget() const override;
folly::dynamic getDiffProps(const Props* prevProps) const override;
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList getDebugProps() const override;
#endif
};
class 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{};
#ifdef RN_SERIALIZABLE_STATE
ComponentName getDiffPropsImplementationTarget() const override;
folly::dynamic getDiffProps(const Props* prevProps) const override;
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList getDebugProps() const override;
#endif
};
class UnimplementedNativeViewProps final : public ViewProps {
public:
UnimplementedNativeViewProps() = default;
UnimplementedNativeViewProps(const PropsParserContext& context, const UnimplementedNativeViewProps &sourceProps, const RawProps &rawProps);
#pragma mark - Props
std::string name{std::string{""}};
#ifdef RN_SERIALIZABLE_STATE
ComponentName getDiffPropsImplementationTarget() const override;
folly::dynamic getDiffProps(const Props* prevProps) const override;
#endif
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList getDebugProps() const override;
#endif
};
} // namespace facebook::react

View File

@@ -0,0 +1,301 @@
/**
* 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 <Foundation/Foundation.h>
#import <React/RCTDefines.h>
#import <React/RCTLog.h>
NS_ASSUME_NONNULL_BEGIN
@protocol RCTVirtualViewExperimentalViewProtocol <NSObject>
@end
@protocol RCTVirtualViewViewProtocol <NSObject>
@end
@protocol RCTActivityIndicatorViewViewProtocol <NSObject>
@end
@protocol RCTAndroidDrawerLayoutViewProtocol <NSObject>
- (void)openDrawer;
- (void)closeDrawer;
@end
RCT_EXTERN inline void RCTAndroidDrawerLayoutHandleCommand(
id<RCTAndroidDrawerLayoutViewProtocol> 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 RCTAndroidHorizontalScrollContentViewViewProtocol <NSObject>
@end
@protocol RCTAndroidSwipeRefreshLayoutViewProtocol <NSObject>
- (void)setNativeRefreshing:(BOOL)value;
@end
RCT_EXTERN inline void RCTAndroidSwipeRefreshLayoutHandleCommand(
id<RCTAndroidSwipeRefreshLayoutViewProtocol> 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 RCTAndroidSwitchViewProtocol <NSObject>
- (void)setNativeValue:(BOOL)value;
@end
RCT_EXTERN inline void RCTAndroidSwitchHandleCommand(
id<RCTAndroidSwitchViewProtocol> 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 RCTDebuggingOverlayViewProtocol <NSObject>
- (void)highlightTraceUpdates:(const NSArray *)updates;
- (void)highlightElements:(const NSArray *)elements;
- (void)clearElementsHighlights;
@end
RCT_EXTERN inline void RCTDebuggingOverlayHandleCommand(
id<RCTDebuggingOverlayViewProtocol> componentView,
NSString const *commandName,
NSArray const *args)
{
if ([commandName isEqualToString:@"highlightTraceUpdates"]) {
#if RCT_DEBUG
if ([args count] != 1) {
RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"DebuggingOverlay", commandName, (int)[args count], 1);
return;
}
#endif
NSObject *arg0 = args[0];
#if RCT_DEBUG
if (!RCTValidateTypeOfViewCommandArgument(arg0, [NSArray class], @"array", @"DebuggingOverlay", commandName, @"1st")) {
return;
}
#endif
const NSArray * updates = (NSArray *)arg0;
[componentView highlightTraceUpdates:updates];
return;
}
if ([commandName isEqualToString:@"highlightElements"]) {
#if RCT_DEBUG
if ([args count] != 1) {
RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"DebuggingOverlay", commandName, (int)[args count], 1);
return;
}
#endif
NSObject *arg0 = args[0];
#if RCT_DEBUG
if (!RCTValidateTypeOfViewCommandArgument(arg0, [NSArray class], @"array", @"DebuggingOverlay", commandName, @"1st")) {
return;
}
#endif
const NSArray * elements = (NSArray *)arg0;
[componentView highlightElements:elements];
return;
}
if ([commandName isEqualToString:@"clearElementsHighlights"]) {
#if RCT_DEBUG
if ([args count] != 0) {
RCTLogError(@"%@ command %@ received %d arguments, expected %d.", @"DebuggingOverlay", commandName, (int)[args count], 0);
return;
}
#endif
[componentView clearElementsHighlights];
return;
}
#if RCT_DEBUG
RCTLogError(@"%@ received command %@, which is not a supported command.", @"DebuggingOverlay", commandName);
#endif
}
@protocol RCTAndroidProgressBarViewProtocol <NSObject>
@end
@protocol RCTPullToRefreshViewViewProtocol <NSObject>
- (void)setNativeRefreshing:(BOOL)refreshing;
@end
RCT_EXTERN inline void RCTPullToRefreshViewHandleCommand(
id<RCTPullToRefreshViewViewProtocol> 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 <NSObject>
@end
@protocol RCTModalHostViewViewProtocol <NSObject>
@end
@protocol RCTSafeAreaViewViewProtocol <NSObject>
@end
@protocol RCTSwitchViewProtocol <NSObject>
- (void)setValue:(BOOL)value;
@end
RCT_EXTERN inline void RCTSwitchHandleCommand(
id<RCTSwitchViewProtocol> 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 RCTUnimplementedNativeViewViewProtocol <NSObject>
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,22 @@
/**
* 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 <react/renderer/components/FBReactNativeSpec/ShadowNodes.h>
namespace facebook::react {
extern const char ActivityIndicatorViewComponentName[] = "ActivityIndicatorView";
extern const char AndroidDrawerLayoutComponentName[] = "AndroidDrawerLayout";
extern const char AndroidSwipeRefreshLayoutComponentName[] = "AndroidSwipeRefreshLayout";
extern const char DebuggingOverlayComponentName[] = "DebuggingOverlay";
extern const char PullToRefreshViewComponentName[] = "PullToRefreshView";
extern const char UnimplementedNativeViewComponentName[] = "UnimplementedNativeView";
} // namespace facebook::react

View File

@@ -0,0 +1,87 @@
/**
* 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 <react/renderer/components/FBReactNativeSpec/EventEmitters.h>
#include <react/renderer/components/FBReactNativeSpec/Props.h>
#include <react/renderer/components/FBReactNativeSpec/States.h>
#include <react/renderer/components/view/ConcreteViewShadowNode.h>
#include <jsi/jsi.h>
namespace facebook::react {
JSI_EXPORT extern const char ActivityIndicatorViewComponentName[];
/*
* `ShadowNode` for <ActivityIndicatorView> component.
*/
using ActivityIndicatorViewShadowNode = ConcreteViewShadowNode<
ActivityIndicatorViewComponentName,
ActivityIndicatorViewProps,
ActivityIndicatorViewEventEmitter,
ActivityIndicatorViewState>;
JSI_EXPORT extern const char AndroidDrawerLayoutComponentName[];
/*
* `ShadowNode` for <AndroidDrawerLayout> component.
*/
using AndroidDrawerLayoutShadowNode = ConcreteViewShadowNode<
AndroidDrawerLayoutComponentName,
AndroidDrawerLayoutProps,
AndroidDrawerLayoutEventEmitter,
AndroidDrawerLayoutState>;
JSI_EXPORT extern const char AndroidSwipeRefreshLayoutComponentName[];
/*
* `ShadowNode` for <AndroidSwipeRefreshLayout> component.
*/
using AndroidSwipeRefreshLayoutShadowNode = ConcreteViewShadowNode<
AndroidSwipeRefreshLayoutComponentName,
AndroidSwipeRefreshLayoutProps,
AndroidSwipeRefreshLayoutEventEmitter,
AndroidSwipeRefreshLayoutState>;
JSI_EXPORT extern const char DebuggingOverlayComponentName[];
/*
* `ShadowNode` for <DebuggingOverlay> component.
*/
using DebuggingOverlayShadowNode = ConcreteViewShadowNode<
DebuggingOverlayComponentName,
DebuggingOverlayProps,
DebuggingOverlayEventEmitter,
DebuggingOverlayState>;
JSI_EXPORT extern const char PullToRefreshViewComponentName[];
/*
* `ShadowNode` for <PullToRefreshView> component.
*/
using PullToRefreshViewShadowNode = ConcreteViewShadowNode<
PullToRefreshViewComponentName,
PullToRefreshViewProps,
PullToRefreshViewEventEmitter,
PullToRefreshViewState>;
JSI_EXPORT extern const char UnimplementedNativeViewComponentName[];
/*
* `ShadowNode` for <UnimplementedNativeView> component.
*/
using UnimplementedNativeViewShadowNode = ConcreteViewShadowNode<
UnimplementedNativeViewComponentName,
UnimplementedNativeViewProps,
UnimplementedNativeViewEventEmitter,
UnimplementedNativeViewState>;
} // namespace facebook::react

View File

@@ -0,0 +1,16 @@
/**
* 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 <react/renderer/components/FBReactNativeSpec/States.h>
namespace facebook::react {
} // namespace facebook::react

View File

@@ -0,0 +1,30 @@
/**
* 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
#include <react/renderer/core/StateData.h>
#ifdef RN_SERIALIZABLE_STATE
#include <folly/dynamic.h>
#endif
namespace facebook::react {
using ActivityIndicatorViewState = StateData;
using AndroidDrawerLayoutState = StateData;
using AndroidSwipeRefreshLayoutState = StateData;
using DebuggingOverlayState = StateData;
using PullToRefreshViewState = StateData;
using UnimplementedNativeViewState = StateData;
} // namespace facebook::react