
/**
 * 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 "Props.h"
#include <folly/dynamic.h>
#include <react/renderer/core/PropsParserContext.h>
#include <react/renderer/core/propsConversions.h>

namespace facebook::react {

EnrichedTextInputViewProps::EnrichedTextInputViewProps(
    const PropsParserContext &context,
    const EnrichedTextInputViewProps &sourceProps,
    const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),

    autoFocus(convertRawProp(context, rawProps, "autoFocus", sourceProps.autoFocus, {false})),
    editable(convertRawProp(context, rawProps, "editable", sourceProps.editable, {false})),
    defaultValue(convertRawProp(context, rawProps, "defaultValue", sourceProps.defaultValue, {})),
    placeholder(convertRawProp(context, rawProps, "placeholder", sourceProps.placeholder, {})),
    placeholderTextColor(convertRawProp(context, rawProps, "placeholderTextColor", sourceProps.placeholderTextColor, {})),
    mentionIndicators(convertRawProp(context, rawProps, "mentionIndicators", sourceProps.mentionIndicators, {})),
    cursorColor(convertRawProp(context, rawProps, "cursorColor", sourceProps.cursorColor, {})),
    selectionColor(convertRawProp(context, rawProps, "selectionColor", sourceProps.selectionColor, {})),
    autoCapitalize(convertRawProp(context, rawProps, "autoCapitalize", sourceProps.autoCapitalize, {})),
    htmlStyle(convertRawProp(context, rawProps, "htmlStyle", sourceProps.htmlStyle, {})),
    scrollEnabled(convertRawProp(context, rawProps, "scrollEnabled", sourceProps.scrollEnabled, {false})),
    linkRegex(convertRawProp(context, rawProps, "linkRegex", sourceProps.linkRegex, {})),
    contextMenuItems(convertRawProp(context, rawProps, "contextMenuItems", sourceProps.contextMenuItems, {})),
    textShortcuts(convertRawProp(context, rawProps, "textShortcuts", sourceProps.textShortcuts, {})),
    returnKeyType(convertRawProp(context, rawProps, "returnKeyType", sourceProps.returnKeyType, {})),
    returnKeyLabel(convertRawProp(context, rawProps, "returnKeyLabel", sourceProps.returnKeyLabel, {})),
    submitBehavior(convertRawProp(context, rawProps, "submitBehavior", sourceProps.submitBehavior, {})),
    allowFontScaling(convertRawProp(context, rawProps, "allowFontScaling", sourceProps.allowFontScaling, {false})),
    color(convertRawProp(context, rawProps, "color", sourceProps.color, {})),
    fontSize(convertRawProp(context, rawProps, "fontSize", sourceProps.fontSize, {0.0})),
    lineHeight(convertRawProp(context, rawProps, "lineHeight", sourceProps.lineHeight, {0.0})),
    fontFamily(convertRawProp(context, rawProps, "fontFamily", sourceProps.fontFamily, {})),
    fontWeight(convertRawProp(context, rawProps, "fontWeight", sourceProps.fontWeight, {})),
    fontStyle(convertRawProp(context, rawProps, "fontStyle", sourceProps.fontStyle, {})),
    isOnChangeHtmlSet(convertRawProp(context, rawProps, "isOnChangeHtmlSet", sourceProps.isOnChangeHtmlSet, {false})),
    isOnChangeTextSet(convertRawProp(context, rawProps, "isOnChangeTextSet", sourceProps.isOnChangeTextSet, {false})),
    androidExperimentalSynchronousEvents(convertRawProp(context, rawProps, "androidExperimentalSynchronousEvents", sourceProps.androidExperimentalSynchronousEvents, {false})),
    useHtmlNormalizer(convertRawProp(context, rawProps, "useHtmlNormalizer", sourceProps.useHtmlNormalizer, {false})) {}
    
#ifdef RN_SERIALIZABLE_STATE
ComponentName EnrichedTextInputViewProps::getDiffPropsImplementationTarget() const {
  return "EnrichedTextInputView";
}

folly::dynamic EnrichedTextInputViewProps::getDiffProps(
    const Props* prevProps) const {
  static const auto defaultProps = EnrichedTextInputViewProps();
  const EnrichedTextInputViewProps* oldProps = prevProps == nullptr
      ? &defaultProps
      : static_cast<const EnrichedTextInputViewProps*>(prevProps);
  if (this == oldProps) {
    return folly::dynamic::object();
  }
  folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
  
  if (autoFocus != oldProps->autoFocus) {
    result["autoFocus"] = autoFocus;
  }
    
  if (editable != oldProps->editable) {
    result["editable"] = editable;
  }
    
  if (defaultValue != oldProps->defaultValue) {
    result["defaultValue"] = defaultValue;
  }
    
  if (placeholder != oldProps->placeholder) {
    result["placeholder"] = placeholder;
  }
    
  if (placeholderTextColor != oldProps->placeholderTextColor) {
    result["placeholderTextColor"] = *placeholderTextColor;
  }
    
  if (mentionIndicators != oldProps->mentionIndicators) {
    result["mentionIndicators"] = toDynamic(mentionIndicators);
  }
    
  if (cursorColor != oldProps->cursorColor) {
    result["cursorColor"] = *cursorColor;
  }
    
  if (selectionColor != oldProps->selectionColor) {
    result["selectionColor"] = *selectionColor;
  }
    
  if (autoCapitalize != oldProps->autoCapitalize) {
    result["autoCapitalize"] = autoCapitalize;
  }
    
  if (htmlStyle != oldProps->htmlStyle) {
    result["htmlStyle"] = toDynamic(htmlStyle);
  }
    
  if (scrollEnabled != oldProps->scrollEnabled) {
    result["scrollEnabled"] = scrollEnabled;
  }
    
  if (linkRegex != oldProps->linkRegex) {
    result["linkRegex"] = toDynamic(linkRegex);
  }
    
  if (contextMenuItems != oldProps->contextMenuItems) {
    result["contextMenuItems"] = toDynamic(contextMenuItems);
  }
    
  if (textShortcuts != oldProps->textShortcuts) {
    result["textShortcuts"] = toDynamic(textShortcuts);
  }
    
  if (returnKeyType != oldProps->returnKeyType) {
    result["returnKeyType"] = returnKeyType;
  }
    
  if (returnKeyLabel != oldProps->returnKeyLabel) {
    result["returnKeyLabel"] = returnKeyLabel;
  }
    
  if (submitBehavior != oldProps->submitBehavior) {
    result["submitBehavior"] = submitBehavior;
  }
    
  if (allowFontScaling != oldProps->allowFontScaling) {
    result["allowFontScaling"] = allowFontScaling;
  }
    
  if (color != oldProps->color) {
    result["color"] = *color;
  }
    
  if ((fontSize != oldProps->fontSize) && !(std::isnan(fontSize) && std::isnan(oldProps->fontSize))) {
    result["fontSize"] = fontSize;
  }
    
  if ((lineHeight != oldProps->lineHeight) && !(std::isnan(lineHeight) && std::isnan(oldProps->lineHeight))) {
    result["lineHeight"] = lineHeight;
  }
    
  if (fontFamily != oldProps->fontFamily) {
    result["fontFamily"] = fontFamily;
  }
    
  if (fontWeight != oldProps->fontWeight) {
    result["fontWeight"] = fontWeight;
  }
    
  if (fontStyle != oldProps->fontStyle) {
    result["fontStyle"] = fontStyle;
  }
    
  if (isOnChangeHtmlSet != oldProps->isOnChangeHtmlSet) {
    result["isOnChangeHtmlSet"] = isOnChangeHtmlSet;
  }
    
  if (isOnChangeTextSet != oldProps->isOnChangeTextSet) {
    result["isOnChangeTextSet"] = isOnChangeTextSet;
  }
    
  if (androidExperimentalSynchronousEvents != oldProps->androidExperimentalSynchronousEvents) {
    result["androidExperimentalSynchronousEvents"] = androidExperimentalSynchronousEvents;
  }
    
  if (useHtmlNormalizer != oldProps->useHtmlNormalizer) {
    result["useHtmlNormalizer"] = useHtmlNormalizer;
  }
  return result;
}
#endif
EnrichedTextViewProps::EnrichedTextViewProps(
    const PropsParserContext &context,
    const EnrichedTextViewProps &sourceProps,
    const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),

    text(convertRawProp(context, rawProps, "text", sourceProps.text, {})),
    htmlStyle(convertRawProp(context, rawProps, "htmlStyle", sourceProps.htmlStyle, {})),
    useHtmlNormalizer(convertRawProp(context, rawProps, "useHtmlNormalizer", sourceProps.useHtmlNormalizer, {false})),
    allowFontScaling(convertRawProp(context, rawProps, "allowFontScaling", sourceProps.allowFontScaling, {false})),
    ellipsizeMode(convertRawProp(context, rawProps, "ellipsizeMode", sourceProps.ellipsizeMode, {})),
    numberOfLines(convertRawProp(context, rawProps, "numberOfLines", sourceProps.numberOfLines, {0})),
    selectable(convertRawProp(context, rawProps, "selectable", sourceProps.selectable, {false})),
    selectionColor(convertRawProp(context, rawProps, "selectionColor", sourceProps.selectionColor, {})),
    color(convertRawProp(context, rawProps, "color", sourceProps.color, {})),
    fontSize(convertRawProp(context, rawProps, "fontSize", sourceProps.fontSize, {0.0})),
    fontFamily(convertRawProp(context, rawProps, "fontFamily", sourceProps.fontFamily, {})),
    fontWeight(convertRawProp(context, rawProps, "fontWeight", sourceProps.fontWeight, {})),
    fontStyle(convertRawProp(context, rawProps, "fontStyle", sourceProps.fontStyle, {})) {}
    
#ifdef RN_SERIALIZABLE_STATE
ComponentName EnrichedTextViewProps::getDiffPropsImplementationTarget() const {
  return "EnrichedTextView";
}

folly::dynamic EnrichedTextViewProps::getDiffProps(
    const Props* prevProps) const {
  static const auto defaultProps = EnrichedTextViewProps();
  const EnrichedTextViewProps* oldProps = prevProps == nullptr
      ? &defaultProps
      : static_cast<const EnrichedTextViewProps*>(prevProps);
  if (this == oldProps) {
    return folly::dynamic::object();
  }
  folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
  
  if (text != oldProps->text) {
    result["text"] = text;
  }
    
  if (htmlStyle != oldProps->htmlStyle) {
    result["htmlStyle"] = toDynamic(htmlStyle);
  }
    
  if (useHtmlNormalizer != oldProps->useHtmlNormalizer) {
    result["useHtmlNormalizer"] = useHtmlNormalizer;
  }
    
  if (allowFontScaling != oldProps->allowFontScaling) {
    result["allowFontScaling"] = allowFontScaling;
  }
    
  if (ellipsizeMode != oldProps->ellipsizeMode) {
    result["ellipsizeMode"] = ellipsizeMode;
  }
    
  if (numberOfLines != oldProps->numberOfLines) {
    result["numberOfLines"] = numberOfLines;
  }
    
  if (selectable != oldProps->selectable) {
    result["selectable"] = selectable;
  }
    
  if (selectionColor != oldProps->selectionColor) {
    result["selectionColor"] = *selectionColor;
  }
    
  if (color != oldProps->color) {
    result["color"] = *color;
  }
    
  if ((fontSize != oldProps->fontSize) && !(std::isnan(fontSize) && std::isnan(oldProps->fontSize))) {
    result["fontSize"] = fontSize;
  }
    
  if (fontFamily != oldProps->fontFamily) {
    result["fontFamily"] = fontFamily;
  }
    
  if (fontWeight != oldProps->fontWeight) {
    result["fontWeight"] = fontWeight;
  }
    
  if (fontStyle != oldProps->fontStyle) {
    result["fontStyle"] = fontStyle;
  }
  return result;
}
#endif

} // namespace facebook::react
