@fendent/react-native-enriched 0.5.2-fork.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -0
- package/README.md +343 -0
- package/ReactNativeEnriched.podspec +31 -0
- package/android/build.gradle +106 -0
- package/android/generated/java/com/facebook/react/viewmanagers/EnrichedTextInputViewManagerDelegate.java +197 -0
- package/android/generated/java/com/facebook/react/viewmanagers/EnrichedTextInputViewManagerInterface.java +72 -0
- package/android/generated/jni/react/renderer/components/ReactNativeEnrichedSpec/ComponentDescriptors.cpp +22 -0
- package/android/generated/jni/react/renderer/components/ReactNativeEnrichedSpec/ComponentDescriptors.h +24 -0
- package/android/generated/jni/react/renderer/components/ReactNativeEnrichedSpec/EventEmitters.cpp +434 -0
- package/android/generated/jni/react/renderer/components/ReactNativeEnrichedSpec/EventEmitters.h +391 -0
- package/android/generated/jni/react/renderer/components/ReactNativeEnrichedSpec/Props.cpp +173 -0
- package/android/generated/jni/react/renderer/components/ReactNativeEnrichedSpec/Props.h +833 -0
- package/android/generated/jni/react/renderer/components/ReactNativeEnrichedSpec/ShadowNodes.cpp +17 -0
- package/android/generated/jni/react/renderer/components/ReactNativeEnrichedSpec/ShadowNodes.h +23 -0
- package/android/generated/jni/react/renderer/components/ReactNativeEnrichedSpec/States.cpp +16 -0
- package/android/generated/jni/react/renderer/components/ReactNativeEnrichedSpec/States.h +20 -0
- package/android/gradle.properties +5 -0
- package/android/lint.gradle +70 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/AndroidManifestNew.xml +2 -0
- package/android/src/main/java/com/swmansion/enriched/ReactNativeEnrichedPackage.kt +20 -0
- package/android/src/main/java/com/swmansion/enriched/common/AsyncDrawable.kt +126 -0
- package/android/src/main/java/com/swmansion/enriched/common/CheckboxDrawable.kt +81 -0
- package/android/src/main/java/com/swmansion/enriched/common/EnrichedConstants.kt +11 -0
- package/android/src/main/java/com/swmansion/enriched/common/EnrichedStyle.kt +57 -0
- package/android/src/main/java/com/swmansion/enriched/common/ForceRedrawSpan.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/common/GumboNormalizer.kt +5 -0
- package/android/src/main/java/com/swmansion/enriched/common/MentionStyle.kt +7 -0
- package/android/src/main/java/com/swmansion/enriched/common/ResourceManager.kt +26 -0
- package/android/src/main/java/com/swmansion/enriched/common/parser/EnrichedParser.java +956 -0
- package/android/src/main/java/com/swmansion/enriched/common/parser/EnrichedSpanFactory.kt +79 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedBlockQuoteSpan.kt +53 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedBoldSpan.kt +12 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedCheckboxListSpan.kt +92 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedCodeBlockSpan.kt +81 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedH1Span.kt +20 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedH2Span.kt +20 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedH3Span.kt +20 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedH4Span.kt +21 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedH5Span.kt +20 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedH6Span.kt +20 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedImageSpan.kt +184 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedInlineCodeSpan.kt +24 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedItalicSpan.kt +12 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedLinkSpan.kt +29 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedMentionSpan.kt +35 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedOrderedListSpan.kt +79 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedStrikeThroughSpan.kt +11 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedUnderlineSpan.kt +11 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/EnrichedUnorderedListSpan.kt +62 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/interfaces/EnrichedBlockSpan.kt +5 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/interfaces/EnrichedHeadingSpan.kt +3 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/interfaces/EnrichedInlineSpan.kt +3 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/interfaces/EnrichedParagraphSpan.kt +5 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/interfaces/EnrichedSpan.kt +3 -0
- package/android/src/main/java/com/swmansion/enriched/common/spans/interfaces/EnrichedZeroWidthSpaceSpan.kt +4 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/EnrichedTextInputConnectionWrapper.kt +140 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/EnrichedTextInputSpannableFactory.kt +83 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/EnrichedTextInputView.kt +1120 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/EnrichedTextInputViewLayoutManager.kt +27 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/EnrichedTextInputViewManager.kt +478 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/MeasurementStore.kt +225 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/MentionHandler.kt +55 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/OnChangeHtmlEvent.kt +27 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/OnChangeSelectionEvent.kt +30 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/OnChangeStateEvent.kt +21 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/OnChangeTextEvent.kt +30 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/OnContextMenuItemPressEvent.kt +35 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/OnInputBlurEvent.kt +25 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/OnInputFocusEvent.kt +25 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/OnInputKeyPressEvent.kt +27 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/OnLinkDetectedEvent.kt +32 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/OnMentionDetectedEvent.kt +30 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/OnMentionEvent.kt +34 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/OnPasteImagesEvent.kt +47 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/OnRequestHtmlResultEvent.kt +32 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/events/OnSubmitEditingEvent.kt +29 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputBlockQuoteSpan.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputBoldSpan.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputCheckboxListSpan.kt +15 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputCodeBlockSpan.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputH1Span.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputH2Span.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputH3Span.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputH4Span.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputH5Span.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputH6Span.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputImageSpan.kt +36 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputInlineCodeSpan.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputItalicSpan.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputLinkSpan.kt +16 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputMentionSpan.kt +18 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputOrderedListSpan.kt +21 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputStrikeThroughSpan.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputUnderlineSpan.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedInputUnorderedListSpan.kt +14 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedLineHeightSpan.kt +44 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/EnrichedSpans.kt +241 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/spans/interfaces/EnrichedInputSpan.kt +10 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/styles/HtmlStyle.kt +372 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/styles/InlineStyles.kt +164 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/styles/ListStyles.kt +263 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/styles/ParagraphStyles.kt +434 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/styles/ParametrizedStyles.kt +394 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/utils/EnrichedEditableFactory.kt +17 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/utils/EnrichedSelection.kt +320 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/utils/EnrichedSpanState.kt +310 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/utils/EnrichedSpannable.kt +106 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/utils/EnrichedSpannableStringBuilder.kt +24 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/utils/RichContentReceiver.kt +127 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/utils/Utils.kt +106 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/watchers/EnrichedSpanWatcher.kt +107 -0
- package/android/src/main/java/com/swmansion/enriched/textinput/watchers/EnrichedTextWatcher.kt +74 -0
- package/android/src/main/new_arch/CMakeLists.txt +62 -0
- package/android/src/main/new_arch/GumboNormalizerJni.cpp +14 -0
- package/android/src/main/new_arch/ReactNativeEnrichedSpec.cpp +11 -0
- package/android/src/main/new_arch/ReactNativeEnrichedSpec.h +15 -0
- package/android/src/main/new_arch/react/renderer/components/ReactNativeEnrichedSpec/EnrichedTextInputComponentDescriptor.h +35 -0
- package/android/src/main/new_arch/react/renderer/components/ReactNativeEnrichedSpec/EnrichedTextInputMeasurementManager.cpp +53 -0
- package/android/src/main/new_arch/react/renderer/components/ReactNativeEnrichedSpec/EnrichedTextInputMeasurementManager.h +25 -0
- package/android/src/main/new_arch/react/renderer/components/ReactNativeEnrichedSpec/EnrichedTextInputShadowNode.cpp +35 -0
- package/android/src/main/new_arch/react/renderer/components/ReactNativeEnrichedSpec/EnrichedTextInputShadowNode.h +53 -0
- package/android/src/main/new_arch/react/renderer/components/ReactNativeEnrichedSpec/EnrichedTextInputState.cpp +9 -0
- package/android/src/main/new_arch/react/renderer/components/ReactNativeEnrichedSpec/EnrichedTextInputState.h +24 -0
- package/android/src/main/new_arch/react/renderer/components/ReactNativeEnrichedSpec/conversions.h +27 -0
- package/android/src/main/res/drawable/broken_image.xml +10 -0
- package/cpp/CMakeLists.txt +50 -0
- package/cpp/GumboParser/GumboParser.h +34043 -0
- package/cpp/README.md +59 -0
- package/cpp/parser/GumboNormalizer.c +915 -0
- package/cpp/parser/GumboParser.cpp +16 -0
- package/cpp/parser/GumboParser.hpp +23 -0
- package/cpp/tests/GumboParserTest.cpp +457 -0
- package/ios/EnrichedTextInputView.h +53 -0
- package/ios/EnrichedTextInputView.mm +2360 -0
- package/ios/EnrichedTextInputViewManager.mm +13 -0
- package/ios/attributesManager/AttributesManager.h +17 -0
- package/ios/attributesManager/AttributesManager.mm +195 -0
- package/ios/config/InputConfig.h +104 -0
- package/ios/config/InputConfig.mm +664 -0
- package/ios/extensions/ColorExtension.h +7 -0
- package/ios/extensions/ColorExtension.mm +38 -0
- package/ios/extensions/FontExtension.h +11 -0
- package/ios/extensions/FontExtension.mm +72 -0
- package/ios/extensions/ImageExtension.h +34 -0
- package/ios/extensions/ImageExtension.mm +165 -0
- package/ios/extensions/LayoutManagerExtension.h +6 -0
- package/ios/extensions/LayoutManagerExtension.mm +443 -0
- package/ios/extensions/StringExtension.h +15 -0
- package/ios/extensions/StringExtension.mm +69 -0
- package/ios/generated/ReactNativeEnrichedSpec/ComponentDescriptors.cpp +22 -0
- package/ios/generated/ReactNativeEnrichedSpec/ComponentDescriptors.h +24 -0
- package/ios/generated/ReactNativeEnrichedSpec/EventEmitters.cpp +434 -0
- package/ios/generated/ReactNativeEnrichedSpec/EventEmitters.h +391 -0
- package/ios/generated/ReactNativeEnrichedSpec/Props.cpp +173 -0
- package/ios/generated/ReactNativeEnrichedSpec/Props.h +833 -0
- package/ios/generated/ReactNativeEnrichedSpec/RCTComponentViewHelpers.h +582 -0
- package/ios/generated/ReactNativeEnrichedSpec/ShadowNodes.cpp +17 -0
- package/ios/generated/ReactNativeEnrichedSpec/ShadowNodes.h +23 -0
- package/ios/generated/ReactNativeEnrichedSpec/States.cpp +16 -0
- package/ios/generated/ReactNativeEnrichedSpec/States.h +20 -0
- package/ios/inputParser/InputParser.h +11 -0
- package/ios/inputParser/InputParser.mm +1463 -0
- package/ios/inputTextView/InputTextView.h +6 -0
- package/ios/inputTextView/InputTextView.mm +285 -0
- package/ios/interfaces/AttributeEntry.h +9 -0
- package/ios/interfaces/AttributeEntry.mm +4 -0
- package/ios/interfaces/BaseStyleProtocol.h +17 -0
- package/ios/interfaces/ImageAttachment.h +11 -0
- package/ios/interfaces/ImageAttachment.mm +107 -0
- package/ios/interfaces/ImageData.h +10 -0
- package/ios/interfaces/ImageData.mm +4 -0
- package/ios/interfaces/LinkData.h +11 -0
- package/ios/interfaces/LinkData.mm +29 -0
- package/ios/interfaces/LinkRegexConfig.h +19 -0
- package/ios/interfaces/LinkRegexConfig.mm +37 -0
- package/ios/interfaces/MediaAttachment.h +23 -0
- package/ios/interfaces/MediaAttachment.mm +31 -0
- package/ios/interfaces/MentionParams.h +8 -0
- package/ios/interfaces/MentionParams.mm +4 -0
- package/ios/interfaces/MentionStyleProps.h +13 -0
- package/ios/interfaces/MentionStyleProps.mm +63 -0
- package/ios/interfaces/StyleBase.h +36 -0
- package/ios/interfaces/StyleBase.mm +256 -0
- package/ios/interfaces/StyleHeaders.h +102 -0
- package/ios/interfaces/StylePair.h +9 -0
- package/ios/interfaces/StylePair.mm +4 -0
- package/ios/interfaces/StyleTypeEnum.h +26 -0
- package/ios/interfaces/TextDecorationLineEnum.h +6 -0
- package/ios/interfaces/TextDecorationLineEnum.mm +4 -0
- package/ios/internals/EnrichedTextInputViewComponentDescriptor.h +19 -0
- package/ios/internals/EnrichedTextInputViewShadowNode.h +44 -0
- package/ios/internals/EnrichedTextInputViewShadowNode.mm +103 -0
- package/ios/internals/EnrichedTextInputViewState.cpp +10 -0
- package/ios/internals/EnrichedTextInputViewState.h +22 -0
- package/ios/styles/BlockQuoteStyle.mm +55 -0
- package/ios/styles/BoldStyle.mm +37 -0
- package/ios/styles/CheckboxListStyle.mm +153 -0
- package/ios/styles/CodeBlockStyle.mm +49 -0
- package/ios/styles/H1Style.mm +20 -0
- package/ios/styles/H2Style.mm +20 -0
- package/ios/styles/H3Style.mm +20 -0
- package/ios/styles/H4Style.mm +20 -0
- package/ios/styles/H5Style.mm +20 -0
- package/ios/styles/H6Style.mm +20 -0
- package/ios/styles/HeadingStyleBase.mm +65 -0
- package/ios/styles/ImageStyle.mm +146 -0
- package/ios/styles/InlineCodeStyle.mm +65 -0
- package/ios/styles/ItalicStyle.mm +37 -0
- package/ios/styles/LinkStyle.mm +532 -0
- package/ios/styles/MentionStyle.mm +538 -0
- package/ios/styles/OrderedListStyle.mm +86 -0
- package/ios/styles/StrikethroughStyle.mm +25 -0
- package/ios/styles/UnderlineStyle.mm +24 -0
- package/ios/styles/UnorderedListStyle.mm +86 -0
- package/ios/utils/CheckboxHitTestUtils.h +10 -0
- package/ios/utils/CheckboxHitTestUtils.mm +122 -0
- package/ios/utils/DotReplacementUtils.h +10 -0
- package/ios/utils/DotReplacementUtils.mm +68 -0
- package/ios/utils/KeyboardUtils.h +7 -0
- package/ios/utils/KeyboardUtils.mm +31 -0
- package/ios/utils/OccurenceUtils.h +44 -0
- package/ios/utils/OccurenceUtils.mm +179 -0
- package/ios/utils/ParagraphAttributesUtils.h +15 -0
- package/ios/utils/ParagraphAttributesUtils.mm +257 -0
- package/ios/utils/RangeUtils.h +12 -0
- package/ios/utils/RangeUtils.mm +183 -0
- package/ios/utils/TextBlockTapGestureRecognizer.h +17 -0
- package/ios/utils/TextBlockTapGestureRecognizer.mm +56 -0
- package/ios/utils/TextInsertionUtils.h +17 -0
- package/ios/utils/TextInsertionUtils.mm +64 -0
- package/ios/utils/WordsUtils.h +7 -0
- package/ios/utils/WordsUtils.mm +98 -0
- package/ios/utils/ZeroWidthSpaceUtils.h +9 -0
- package/ios/utils/ZeroWidthSpaceUtils.mm +270 -0
- package/lib/module/index.js +4 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/native/EnrichedTextInput.js +304 -0
- package/lib/module/native/EnrichedTextInput.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/spec/EnrichedTextInputNativeComponent.ts +517 -0
- package/lib/module/types.js +4 -0
- package/lib/module/types.js.map +1 -0
- package/lib/module/utils/EnrichedTextInputDefaultProps.js +12 -0
- package/lib/module/utils/EnrichedTextInputDefaultProps.js.map +1 -0
- package/lib/module/utils/normalizeHtmlStyle.js +155 -0
- package/lib/module/utils/normalizeHtmlStyle.js.map +1 -0
- package/lib/module/utils/nullthrows.js +9 -0
- package/lib/module/utils/nullthrows.js.map +1 -0
- package/lib/module/utils/regexParser.js +46 -0
- package/lib/module/utils/regexParser.js.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/index.d.ts +3 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/native/EnrichedTextInput.d.ts +3 -0
- package/lib/typescript/src/native/EnrichedTextInput.d.ts.map +1 -0
- package/lib/typescript/src/spec/EnrichedTextInputNativeComponent.d.ts +397 -0
- package/lib/typescript/src/spec/EnrichedTextInputNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts +447 -0
- package/lib/typescript/src/types.d.ts.map +1 -0
- package/lib/typescript/src/utils/EnrichedTextInputDefaultProps.d.ts +10 -0
- package/lib/typescript/src/utils/EnrichedTextInputDefaultProps.d.ts.map +1 -0
- package/lib/typescript/src/utils/normalizeHtmlStyle.d.ts +4 -0
- package/lib/typescript/src/utils/normalizeHtmlStyle.d.ts.map +1 -0
- package/lib/typescript/src/utils/nullthrows.d.ts +2 -0
- package/lib/typescript/src/utils/nullthrows.d.ts.map +1 -0
- package/lib/typescript/src/utils/regexParser.d.ts +3 -0
- package/lib/typescript/src/utils/regexParser.d.ts.map +1 -0
- package/package.json +226 -0
- package/react-native.config.js +13 -0
- package/src/index.tsx +20 -0
- package/src/native/EnrichedTextInput.tsx +370 -0
- package/src/spec/EnrichedTextInputNativeComponent.ts +517 -0
- package/src/types.ts +499 -0
- package/src/utils/EnrichedTextInputDefaultProps.ts +9 -0
- package/src/utils/normalizeHtmlStyle.ts +199 -0
- package/src/utils/nullthrows.ts +7 -0
- package/src/utils/regexParser.ts +56 -0
|
@@ -0,0 +1,833 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
+
*
|
|
5
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
+
* once the code is regenerated.
|
|
7
|
+
*
|
|
8
|
+
* @generated by codegen project: GeneratePropsH.js
|
|
9
|
+
*/
|
|
10
|
+
#pragma once
|
|
11
|
+
|
|
12
|
+
#include <folly/dynamic.h>
|
|
13
|
+
#include <react/renderer/components/view/ViewProps.h>
|
|
14
|
+
#include <react/renderer/core/PropsParserContext.h>
|
|
15
|
+
#include <react/renderer/core/propsConversions.h>
|
|
16
|
+
#include <react/renderer/graphics/Color.h>
|
|
17
|
+
#include <vector>
|
|
18
|
+
|
|
19
|
+
namespace facebook::react {
|
|
20
|
+
|
|
21
|
+
struct EnrichedTextInputViewHtmlStyleH1Struct {
|
|
22
|
+
Float fontSize{0.0};
|
|
23
|
+
bool bold{false};
|
|
24
|
+
|
|
25
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
26
|
+
bool operator==(const EnrichedTextInputViewHtmlStyleH1Struct&) const = default;
|
|
27
|
+
|
|
28
|
+
folly::dynamic toDynamic() const {
|
|
29
|
+
folly::dynamic result = folly::dynamic::object();
|
|
30
|
+
result["fontSize"] = fontSize;
|
|
31
|
+
result["bold"] = bold;
|
|
32
|
+
return result;
|
|
33
|
+
}
|
|
34
|
+
#endif
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedTextInputViewHtmlStyleH1Struct &result) {
|
|
38
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
39
|
+
|
|
40
|
+
auto tmp_fontSize = map.find("fontSize");
|
|
41
|
+
if (tmp_fontSize != map.end()) {
|
|
42
|
+
fromRawValue(context, tmp_fontSize->second, result.fontSize);
|
|
43
|
+
}
|
|
44
|
+
auto tmp_bold = map.find("bold");
|
|
45
|
+
if (tmp_bold != map.end()) {
|
|
46
|
+
fromRawValue(context, tmp_bold->second, result.bold);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
static inline std::string toString(const EnrichedTextInputViewHtmlStyleH1Struct &value) {
|
|
51
|
+
return "[Object EnrichedTextInputViewHtmlStyleH1Struct]";
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
55
|
+
static inline folly::dynamic toDynamic(const EnrichedTextInputViewHtmlStyleH1Struct &value) {
|
|
56
|
+
return value.toDynamic();
|
|
57
|
+
}
|
|
58
|
+
#endif
|
|
59
|
+
|
|
60
|
+
struct EnrichedTextInputViewHtmlStyleH2Struct {
|
|
61
|
+
Float fontSize{0.0};
|
|
62
|
+
bool bold{false};
|
|
63
|
+
|
|
64
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
65
|
+
bool operator==(const EnrichedTextInputViewHtmlStyleH2Struct&) const = default;
|
|
66
|
+
|
|
67
|
+
folly::dynamic toDynamic() const {
|
|
68
|
+
folly::dynamic result = folly::dynamic::object();
|
|
69
|
+
result["fontSize"] = fontSize;
|
|
70
|
+
result["bold"] = bold;
|
|
71
|
+
return result;
|
|
72
|
+
}
|
|
73
|
+
#endif
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedTextInputViewHtmlStyleH2Struct &result) {
|
|
77
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
78
|
+
|
|
79
|
+
auto tmp_fontSize = map.find("fontSize");
|
|
80
|
+
if (tmp_fontSize != map.end()) {
|
|
81
|
+
fromRawValue(context, tmp_fontSize->second, result.fontSize);
|
|
82
|
+
}
|
|
83
|
+
auto tmp_bold = map.find("bold");
|
|
84
|
+
if (tmp_bold != map.end()) {
|
|
85
|
+
fromRawValue(context, tmp_bold->second, result.bold);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
static inline std::string toString(const EnrichedTextInputViewHtmlStyleH2Struct &value) {
|
|
90
|
+
return "[Object EnrichedTextInputViewHtmlStyleH2Struct]";
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
94
|
+
static inline folly::dynamic toDynamic(const EnrichedTextInputViewHtmlStyleH2Struct &value) {
|
|
95
|
+
return value.toDynamic();
|
|
96
|
+
}
|
|
97
|
+
#endif
|
|
98
|
+
|
|
99
|
+
struct EnrichedTextInputViewHtmlStyleH3Struct {
|
|
100
|
+
Float fontSize{0.0};
|
|
101
|
+
bool bold{false};
|
|
102
|
+
|
|
103
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
104
|
+
bool operator==(const EnrichedTextInputViewHtmlStyleH3Struct&) const = default;
|
|
105
|
+
|
|
106
|
+
folly::dynamic toDynamic() const {
|
|
107
|
+
folly::dynamic result = folly::dynamic::object();
|
|
108
|
+
result["fontSize"] = fontSize;
|
|
109
|
+
result["bold"] = bold;
|
|
110
|
+
return result;
|
|
111
|
+
}
|
|
112
|
+
#endif
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedTextInputViewHtmlStyleH3Struct &result) {
|
|
116
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
117
|
+
|
|
118
|
+
auto tmp_fontSize = map.find("fontSize");
|
|
119
|
+
if (tmp_fontSize != map.end()) {
|
|
120
|
+
fromRawValue(context, tmp_fontSize->second, result.fontSize);
|
|
121
|
+
}
|
|
122
|
+
auto tmp_bold = map.find("bold");
|
|
123
|
+
if (tmp_bold != map.end()) {
|
|
124
|
+
fromRawValue(context, tmp_bold->second, result.bold);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
static inline std::string toString(const EnrichedTextInputViewHtmlStyleH3Struct &value) {
|
|
129
|
+
return "[Object EnrichedTextInputViewHtmlStyleH3Struct]";
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
133
|
+
static inline folly::dynamic toDynamic(const EnrichedTextInputViewHtmlStyleH3Struct &value) {
|
|
134
|
+
return value.toDynamic();
|
|
135
|
+
}
|
|
136
|
+
#endif
|
|
137
|
+
|
|
138
|
+
struct EnrichedTextInputViewHtmlStyleH4Struct {
|
|
139
|
+
Float fontSize{0.0};
|
|
140
|
+
bool bold{false};
|
|
141
|
+
|
|
142
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
143
|
+
bool operator==(const EnrichedTextInputViewHtmlStyleH4Struct&) const = default;
|
|
144
|
+
|
|
145
|
+
folly::dynamic toDynamic() const {
|
|
146
|
+
folly::dynamic result = folly::dynamic::object();
|
|
147
|
+
result["fontSize"] = fontSize;
|
|
148
|
+
result["bold"] = bold;
|
|
149
|
+
return result;
|
|
150
|
+
}
|
|
151
|
+
#endif
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedTextInputViewHtmlStyleH4Struct &result) {
|
|
155
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
156
|
+
|
|
157
|
+
auto tmp_fontSize = map.find("fontSize");
|
|
158
|
+
if (tmp_fontSize != map.end()) {
|
|
159
|
+
fromRawValue(context, tmp_fontSize->second, result.fontSize);
|
|
160
|
+
}
|
|
161
|
+
auto tmp_bold = map.find("bold");
|
|
162
|
+
if (tmp_bold != map.end()) {
|
|
163
|
+
fromRawValue(context, tmp_bold->second, result.bold);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
static inline std::string toString(const EnrichedTextInputViewHtmlStyleH4Struct &value) {
|
|
168
|
+
return "[Object EnrichedTextInputViewHtmlStyleH4Struct]";
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
172
|
+
static inline folly::dynamic toDynamic(const EnrichedTextInputViewHtmlStyleH4Struct &value) {
|
|
173
|
+
return value.toDynamic();
|
|
174
|
+
}
|
|
175
|
+
#endif
|
|
176
|
+
|
|
177
|
+
struct EnrichedTextInputViewHtmlStyleH5Struct {
|
|
178
|
+
Float fontSize{0.0};
|
|
179
|
+
bool bold{false};
|
|
180
|
+
|
|
181
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
182
|
+
bool operator==(const EnrichedTextInputViewHtmlStyleH5Struct&) const = default;
|
|
183
|
+
|
|
184
|
+
folly::dynamic toDynamic() const {
|
|
185
|
+
folly::dynamic result = folly::dynamic::object();
|
|
186
|
+
result["fontSize"] = fontSize;
|
|
187
|
+
result["bold"] = bold;
|
|
188
|
+
return result;
|
|
189
|
+
}
|
|
190
|
+
#endif
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedTextInputViewHtmlStyleH5Struct &result) {
|
|
194
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
195
|
+
|
|
196
|
+
auto tmp_fontSize = map.find("fontSize");
|
|
197
|
+
if (tmp_fontSize != map.end()) {
|
|
198
|
+
fromRawValue(context, tmp_fontSize->second, result.fontSize);
|
|
199
|
+
}
|
|
200
|
+
auto tmp_bold = map.find("bold");
|
|
201
|
+
if (tmp_bold != map.end()) {
|
|
202
|
+
fromRawValue(context, tmp_bold->second, result.bold);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
static inline std::string toString(const EnrichedTextInputViewHtmlStyleH5Struct &value) {
|
|
207
|
+
return "[Object EnrichedTextInputViewHtmlStyleH5Struct]";
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
211
|
+
static inline folly::dynamic toDynamic(const EnrichedTextInputViewHtmlStyleH5Struct &value) {
|
|
212
|
+
return value.toDynamic();
|
|
213
|
+
}
|
|
214
|
+
#endif
|
|
215
|
+
|
|
216
|
+
struct EnrichedTextInputViewHtmlStyleH6Struct {
|
|
217
|
+
Float fontSize{0.0};
|
|
218
|
+
bool bold{false};
|
|
219
|
+
|
|
220
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
221
|
+
bool operator==(const EnrichedTextInputViewHtmlStyleH6Struct&) const = default;
|
|
222
|
+
|
|
223
|
+
folly::dynamic toDynamic() const {
|
|
224
|
+
folly::dynamic result = folly::dynamic::object();
|
|
225
|
+
result["fontSize"] = fontSize;
|
|
226
|
+
result["bold"] = bold;
|
|
227
|
+
return result;
|
|
228
|
+
}
|
|
229
|
+
#endif
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedTextInputViewHtmlStyleH6Struct &result) {
|
|
233
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
234
|
+
|
|
235
|
+
auto tmp_fontSize = map.find("fontSize");
|
|
236
|
+
if (tmp_fontSize != map.end()) {
|
|
237
|
+
fromRawValue(context, tmp_fontSize->second, result.fontSize);
|
|
238
|
+
}
|
|
239
|
+
auto tmp_bold = map.find("bold");
|
|
240
|
+
if (tmp_bold != map.end()) {
|
|
241
|
+
fromRawValue(context, tmp_bold->second, result.bold);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
static inline std::string toString(const EnrichedTextInputViewHtmlStyleH6Struct &value) {
|
|
246
|
+
return "[Object EnrichedTextInputViewHtmlStyleH6Struct]";
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
250
|
+
static inline folly::dynamic toDynamic(const EnrichedTextInputViewHtmlStyleH6Struct &value) {
|
|
251
|
+
return value.toDynamic();
|
|
252
|
+
}
|
|
253
|
+
#endif
|
|
254
|
+
|
|
255
|
+
struct EnrichedTextInputViewHtmlStyleBlockquoteStruct {
|
|
256
|
+
SharedColor borderColor{};
|
|
257
|
+
Float borderWidth{0.0};
|
|
258
|
+
Float gapWidth{0.0};
|
|
259
|
+
SharedColor color{};
|
|
260
|
+
|
|
261
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
262
|
+
bool operator==(const EnrichedTextInputViewHtmlStyleBlockquoteStruct&) const = default;
|
|
263
|
+
|
|
264
|
+
folly::dynamic toDynamic() const {
|
|
265
|
+
folly::dynamic result = folly::dynamic::object();
|
|
266
|
+
result["borderColor"] = ::facebook::react::toDynamic(borderColor);
|
|
267
|
+
result["borderWidth"] = borderWidth;
|
|
268
|
+
result["gapWidth"] = gapWidth;
|
|
269
|
+
result["color"] = ::facebook::react::toDynamic(color);
|
|
270
|
+
return result;
|
|
271
|
+
}
|
|
272
|
+
#endif
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedTextInputViewHtmlStyleBlockquoteStruct &result) {
|
|
276
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
277
|
+
|
|
278
|
+
auto tmp_borderColor = map.find("borderColor");
|
|
279
|
+
if (tmp_borderColor != map.end()) {
|
|
280
|
+
fromRawValue(context, tmp_borderColor->second, result.borderColor);
|
|
281
|
+
}
|
|
282
|
+
auto tmp_borderWidth = map.find("borderWidth");
|
|
283
|
+
if (tmp_borderWidth != map.end()) {
|
|
284
|
+
fromRawValue(context, tmp_borderWidth->second, result.borderWidth);
|
|
285
|
+
}
|
|
286
|
+
auto tmp_gapWidth = map.find("gapWidth");
|
|
287
|
+
if (tmp_gapWidth != map.end()) {
|
|
288
|
+
fromRawValue(context, tmp_gapWidth->second, result.gapWidth);
|
|
289
|
+
}
|
|
290
|
+
auto tmp_color = map.find("color");
|
|
291
|
+
if (tmp_color != map.end()) {
|
|
292
|
+
fromRawValue(context, tmp_color->second, result.color);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
static inline std::string toString(const EnrichedTextInputViewHtmlStyleBlockquoteStruct &value) {
|
|
297
|
+
return "[Object EnrichedTextInputViewHtmlStyleBlockquoteStruct]";
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
301
|
+
static inline folly::dynamic toDynamic(const EnrichedTextInputViewHtmlStyleBlockquoteStruct &value) {
|
|
302
|
+
return value.toDynamic();
|
|
303
|
+
}
|
|
304
|
+
#endif
|
|
305
|
+
|
|
306
|
+
struct EnrichedTextInputViewHtmlStyleCodeblockStruct {
|
|
307
|
+
SharedColor color{};
|
|
308
|
+
Float borderRadius{0.0};
|
|
309
|
+
SharedColor backgroundColor{};
|
|
310
|
+
|
|
311
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
312
|
+
bool operator==(const EnrichedTextInputViewHtmlStyleCodeblockStruct&) const = default;
|
|
313
|
+
|
|
314
|
+
folly::dynamic toDynamic() const {
|
|
315
|
+
folly::dynamic result = folly::dynamic::object();
|
|
316
|
+
result["color"] = ::facebook::react::toDynamic(color);
|
|
317
|
+
result["borderRadius"] = borderRadius;
|
|
318
|
+
result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
|
|
319
|
+
return result;
|
|
320
|
+
}
|
|
321
|
+
#endif
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedTextInputViewHtmlStyleCodeblockStruct &result) {
|
|
325
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
326
|
+
|
|
327
|
+
auto tmp_color = map.find("color");
|
|
328
|
+
if (tmp_color != map.end()) {
|
|
329
|
+
fromRawValue(context, tmp_color->second, result.color);
|
|
330
|
+
}
|
|
331
|
+
auto tmp_borderRadius = map.find("borderRadius");
|
|
332
|
+
if (tmp_borderRadius != map.end()) {
|
|
333
|
+
fromRawValue(context, tmp_borderRadius->second, result.borderRadius);
|
|
334
|
+
}
|
|
335
|
+
auto tmp_backgroundColor = map.find("backgroundColor");
|
|
336
|
+
if (tmp_backgroundColor != map.end()) {
|
|
337
|
+
fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
static inline std::string toString(const EnrichedTextInputViewHtmlStyleCodeblockStruct &value) {
|
|
342
|
+
return "[Object EnrichedTextInputViewHtmlStyleCodeblockStruct]";
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
346
|
+
static inline folly::dynamic toDynamic(const EnrichedTextInputViewHtmlStyleCodeblockStruct &value) {
|
|
347
|
+
return value.toDynamic();
|
|
348
|
+
}
|
|
349
|
+
#endif
|
|
350
|
+
|
|
351
|
+
struct EnrichedTextInputViewHtmlStyleCodeStruct {
|
|
352
|
+
SharedColor color{};
|
|
353
|
+
SharedColor backgroundColor{};
|
|
354
|
+
|
|
355
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
356
|
+
bool operator==(const EnrichedTextInputViewHtmlStyleCodeStruct&) const = default;
|
|
357
|
+
|
|
358
|
+
folly::dynamic toDynamic() const {
|
|
359
|
+
folly::dynamic result = folly::dynamic::object();
|
|
360
|
+
result["color"] = ::facebook::react::toDynamic(color);
|
|
361
|
+
result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor);
|
|
362
|
+
return result;
|
|
363
|
+
}
|
|
364
|
+
#endif
|
|
365
|
+
};
|
|
366
|
+
|
|
367
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedTextInputViewHtmlStyleCodeStruct &result) {
|
|
368
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
369
|
+
|
|
370
|
+
auto tmp_color = map.find("color");
|
|
371
|
+
if (tmp_color != map.end()) {
|
|
372
|
+
fromRawValue(context, tmp_color->second, result.color);
|
|
373
|
+
}
|
|
374
|
+
auto tmp_backgroundColor = map.find("backgroundColor");
|
|
375
|
+
if (tmp_backgroundColor != map.end()) {
|
|
376
|
+
fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor);
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
static inline std::string toString(const EnrichedTextInputViewHtmlStyleCodeStruct &value) {
|
|
381
|
+
return "[Object EnrichedTextInputViewHtmlStyleCodeStruct]";
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
385
|
+
static inline folly::dynamic toDynamic(const EnrichedTextInputViewHtmlStyleCodeStruct &value) {
|
|
386
|
+
return value.toDynamic();
|
|
387
|
+
}
|
|
388
|
+
#endif
|
|
389
|
+
|
|
390
|
+
struct EnrichedTextInputViewHtmlStyleAStruct {
|
|
391
|
+
SharedColor color{};
|
|
392
|
+
std::string textDecorationLine{};
|
|
393
|
+
|
|
394
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
395
|
+
bool operator==(const EnrichedTextInputViewHtmlStyleAStruct&) const = default;
|
|
396
|
+
|
|
397
|
+
folly::dynamic toDynamic() const {
|
|
398
|
+
folly::dynamic result = folly::dynamic::object();
|
|
399
|
+
result["color"] = ::facebook::react::toDynamic(color);
|
|
400
|
+
result["textDecorationLine"] = textDecorationLine;
|
|
401
|
+
return result;
|
|
402
|
+
}
|
|
403
|
+
#endif
|
|
404
|
+
};
|
|
405
|
+
|
|
406
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedTextInputViewHtmlStyleAStruct &result) {
|
|
407
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
408
|
+
|
|
409
|
+
auto tmp_color = map.find("color");
|
|
410
|
+
if (tmp_color != map.end()) {
|
|
411
|
+
fromRawValue(context, tmp_color->second, result.color);
|
|
412
|
+
}
|
|
413
|
+
auto tmp_textDecorationLine = map.find("textDecorationLine");
|
|
414
|
+
if (tmp_textDecorationLine != map.end()) {
|
|
415
|
+
fromRawValue(context, tmp_textDecorationLine->second, result.textDecorationLine);
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
static inline std::string toString(const EnrichedTextInputViewHtmlStyleAStruct &value) {
|
|
420
|
+
return "[Object EnrichedTextInputViewHtmlStyleAStruct]";
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
424
|
+
static inline folly::dynamic toDynamic(const EnrichedTextInputViewHtmlStyleAStruct &value) {
|
|
425
|
+
return value.toDynamic();
|
|
426
|
+
}
|
|
427
|
+
#endif
|
|
428
|
+
|
|
429
|
+
struct EnrichedTextInputViewHtmlStyleOlStruct {
|
|
430
|
+
Float gapWidth{0.0};
|
|
431
|
+
Float marginLeft{0.0};
|
|
432
|
+
std::string markerFontWeight{};
|
|
433
|
+
SharedColor markerColor{};
|
|
434
|
+
|
|
435
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
436
|
+
bool operator==(const EnrichedTextInputViewHtmlStyleOlStruct&) const = default;
|
|
437
|
+
|
|
438
|
+
folly::dynamic toDynamic() const {
|
|
439
|
+
folly::dynamic result = folly::dynamic::object();
|
|
440
|
+
result["gapWidth"] = gapWidth;
|
|
441
|
+
result["marginLeft"] = marginLeft;
|
|
442
|
+
result["markerFontWeight"] = markerFontWeight;
|
|
443
|
+
result["markerColor"] = ::facebook::react::toDynamic(markerColor);
|
|
444
|
+
return result;
|
|
445
|
+
}
|
|
446
|
+
#endif
|
|
447
|
+
};
|
|
448
|
+
|
|
449
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedTextInputViewHtmlStyleOlStruct &result) {
|
|
450
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
451
|
+
|
|
452
|
+
auto tmp_gapWidth = map.find("gapWidth");
|
|
453
|
+
if (tmp_gapWidth != map.end()) {
|
|
454
|
+
fromRawValue(context, tmp_gapWidth->second, result.gapWidth);
|
|
455
|
+
}
|
|
456
|
+
auto tmp_marginLeft = map.find("marginLeft");
|
|
457
|
+
if (tmp_marginLeft != map.end()) {
|
|
458
|
+
fromRawValue(context, tmp_marginLeft->second, result.marginLeft);
|
|
459
|
+
}
|
|
460
|
+
auto tmp_markerFontWeight = map.find("markerFontWeight");
|
|
461
|
+
if (tmp_markerFontWeight != map.end()) {
|
|
462
|
+
fromRawValue(context, tmp_markerFontWeight->second, result.markerFontWeight);
|
|
463
|
+
}
|
|
464
|
+
auto tmp_markerColor = map.find("markerColor");
|
|
465
|
+
if (tmp_markerColor != map.end()) {
|
|
466
|
+
fromRawValue(context, tmp_markerColor->second, result.markerColor);
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
static inline std::string toString(const EnrichedTextInputViewHtmlStyleOlStruct &value) {
|
|
471
|
+
return "[Object EnrichedTextInputViewHtmlStyleOlStruct]";
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
475
|
+
static inline folly::dynamic toDynamic(const EnrichedTextInputViewHtmlStyleOlStruct &value) {
|
|
476
|
+
return value.toDynamic();
|
|
477
|
+
}
|
|
478
|
+
#endif
|
|
479
|
+
|
|
480
|
+
struct EnrichedTextInputViewHtmlStyleUlStruct {
|
|
481
|
+
SharedColor bulletColor{};
|
|
482
|
+
Float bulletSize{0.0};
|
|
483
|
+
Float marginLeft{0.0};
|
|
484
|
+
Float gapWidth{0.0};
|
|
485
|
+
|
|
486
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
487
|
+
bool operator==(const EnrichedTextInputViewHtmlStyleUlStruct&) const = default;
|
|
488
|
+
|
|
489
|
+
folly::dynamic toDynamic() const {
|
|
490
|
+
folly::dynamic result = folly::dynamic::object();
|
|
491
|
+
result["bulletColor"] = ::facebook::react::toDynamic(bulletColor);
|
|
492
|
+
result["bulletSize"] = bulletSize;
|
|
493
|
+
result["marginLeft"] = marginLeft;
|
|
494
|
+
result["gapWidth"] = gapWidth;
|
|
495
|
+
return result;
|
|
496
|
+
}
|
|
497
|
+
#endif
|
|
498
|
+
};
|
|
499
|
+
|
|
500
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedTextInputViewHtmlStyleUlStruct &result) {
|
|
501
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
502
|
+
|
|
503
|
+
auto tmp_bulletColor = map.find("bulletColor");
|
|
504
|
+
if (tmp_bulletColor != map.end()) {
|
|
505
|
+
fromRawValue(context, tmp_bulletColor->second, result.bulletColor);
|
|
506
|
+
}
|
|
507
|
+
auto tmp_bulletSize = map.find("bulletSize");
|
|
508
|
+
if (tmp_bulletSize != map.end()) {
|
|
509
|
+
fromRawValue(context, tmp_bulletSize->second, result.bulletSize);
|
|
510
|
+
}
|
|
511
|
+
auto tmp_marginLeft = map.find("marginLeft");
|
|
512
|
+
if (tmp_marginLeft != map.end()) {
|
|
513
|
+
fromRawValue(context, tmp_marginLeft->second, result.marginLeft);
|
|
514
|
+
}
|
|
515
|
+
auto tmp_gapWidth = map.find("gapWidth");
|
|
516
|
+
if (tmp_gapWidth != map.end()) {
|
|
517
|
+
fromRawValue(context, tmp_gapWidth->second, result.gapWidth);
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
static inline std::string toString(const EnrichedTextInputViewHtmlStyleUlStruct &value) {
|
|
522
|
+
return "[Object EnrichedTextInputViewHtmlStyleUlStruct]";
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
526
|
+
static inline folly::dynamic toDynamic(const EnrichedTextInputViewHtmlStyleUlStruct &value) {
|
|
527
|
+
return value.toDynamic();
|
|
528
|
+
}
|
|
529
|
+
#endif
|
|
530
|
+
|
|
531
|
+
struct EnrichedTextInputViewHtmlStyleUlCheckboxStruct {
|
|
532
|
+
Float gapWidth{0.0};
|
|
533
|
+
Float boxSize{0.0};
|
|
534
|
+
Float marginLeft{0.0};
|
|
535
|
+
SharedColor boxColor{};
|
|
536
|
+
|
|
537
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
538
|
+
bool operator==(const EnrichedTextInputViewHtmlStyleUlCheckboxStruct&) const = default;
|
|
539
|
+
|
|
540
|
+
folly::dynamic toDynamic() const {
|
|
541
|
+
folly::dynamic result = folly::dynamic::object();
|
|
542
|
+
result["gapWidth"] = gapWidth;
|
|
543
|
+
result["boxSize"] = boxSize;
|
|
544
|
+
result["marginLeft"] = marginLeft;
|
|
545
|
+
result["boxColor"] = ::facebook::react::toDynamic(boxColor);
|
|
546
|
+
return result;
|
|
547
|
+
}
|
|
548
|
+
#endif
|
|
549
|
+
};
|
|
550
|
+
|
|
551
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedTextInputViewHtmlStyleUlCheckboxStruct &result) {
|
|
552
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
553
|
+
|
|
554
|
+
auto tmp_gapWidth = map.find("gapWidth");
|
|
555
|
+
if (tmp_gapWidth != map.end()) {
|
|
556
|
+
fromRawValue(context, tmp_gapWidth->second, result.gapWidth);
|
|
557
|
+
}
|
|
558
|
+
auto tmp_boxSize = map.find("boxSize");
|
|
559
|
+
if (tmp_boxSize != map.end()) {
|
|
560
|
+
fromRawValue(context, tmp_boxSize->second, result.boxSize);
|
|
561
|
+
}
|
|
562
|
+
auto tmp_marginLeft = map.find("marginLeft");
|
|
563
|
+
if (tmp_marginLeft != map.end()) {
|
|
564
|
+
fromRawValue(context, tmp_marginLeft->second, result.marginLeft);
|
|
565
|
+
}
|
|
566
|
+
auto tmp_boxColor = map.find("boxColor");
|
|
567
|
+
if (tmp_boxColor != map.end()) {
|
|
568
|
+
fromRawValue(context, tmp_boxColor->second, result.boxColor);
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
static inline std::string toString(const EnrichedTextInputViewHtmlStyleUlCheckboxStruct &value) {
|
|
573
|
+
return "[Object EnrichedTextInputViewHtmlStyleUlCheckboxStruct]";
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
577
|
+
static inline folly::dynamic toDynamic(const EnrichedTextInputViewHtmlStyleUlCheckboxStruct &value) {
|
|
578
|
+
return value.toDynamic();
|
|
579
|
+
}
|
|
580
|
+
#endif
|
|
581
|
+
|
|
582
|
+
struct EnrichedTextInputViewHtmlStyleStruct {
|
|
583
|
+
EnrichedTextInputViewHtmlStyleH1Struct h1{};
|
|
584
|
+
EnrichedTextInputViewHtmlStyleH2Struct h2{};
|
|
585
|
+
EnrichedTextInputViewHtmlStyleH3Struct h3{};
|
|
586
|
+
EnrichedTextInputViewHtmlStyleH4Struct h4{};
|
|
587
|
+
EnrichedTextInputViewHtmlStyleH5Struct h5{};
|
|
588
|
+
EnrichedTextInputViewHtmlStyleH6Struct h6{};
|
|
589
|
+
EnrichedTextInputViewHtmlStyleBlockquoteStruct blockquote{};
|
|
590
|
+
EnrichedTextInputViewHtmlStyleCodeblockStruct codeblock{};
|
|
591
|
+
EnrichedTextInputViewHtmlStyleCodeStruct code{};
|
|
592
|
+
EnrichedTextInputViewHtmlStyleAStruct a{};
|
|
593
|
+
folly::dynamic mention{};
|
|
594
|
+
EnrichedTextInputViewHtmlStyleOlStruct ol{};
|
|
595
|
+
EnrichedTextInputViewHtmlStyleUlStruct ul{};
|
|
596
|
+
EnrichedTextInputViewHtmlStyleUlCheckboxStruct ulCheckbox{};
|
|
597
|
+
|
|
598
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
599
|
+
bool operator==(const EnrichedTextInputViewHtmlStyleStruct&) const = default;
|
|
600
|
+
|
|
601
|
+
folly::dynamic toDynamic() const {
|
|
602
|
+
folly::dynamic result = folly::dynamic::object();
|
|
603
|
+
result["h1"] = ::facebook::react::toDynamic(h1);
|
|
604
|
+
result["h2"] = ::facebook::react::toDynamic(h2);
|
|
605
|
+
result["h3"] = ::facebook::react::toDynamic(h3);
|
|
606
|
+
result["h4"] = ::facebook::react::toDynamic(h4);
|
|
607
|
+
result["h5"] = ::facebook::react::toDynamic(h5);
|
|
608
|
+
result["h6"] = ::facebook::react::toDynamic(h6);
|
|
609
|
+
result["blockquote"] = ::facebook::react::toDynamic(blockquote);
|
|
610
|
+
result["codeblock"] = ::facebook::react::toDynamic(codeblock);
|
|
611
|
+
result["code"] = ::facebook::react::toDynamic(code);
|
|
612
|
+
result["a"] = ::facebook::react::toDynamic(a);
|
|
613
|
+
result["mention"] = mention;
|
|
614
|
+
result["ol"] = ::facebook::react::toDynamic(ol);
|
|
615
|
+
result["ul"] = ::facebook::react::toDynamic(ul);
|
|
616
|
+
result["ulCheckbox"] = ::facebook::react::toDynamic(ulCheckbox);
|
|
617
|
+
return result;
|
|
618
|
+
}
|
|
619
|
+
#endif
|
|
620
|
+
};
|
|
621
|
+
|
|
622
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedTextInputViewHtmlStyleStruct &result) {
|
|
623
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
624
|
+
|
|
625
|
+
auto tmp_h1 = map.find("h1");
|
|
626
|
+
if (tmp_h1 != map.end()) {
|
|
627
|
+
fromRawValue(context, tmp_h1->second, result.h1);
|
|
628
|
+
}
|
|
629
|
+
auto tmp_h2 = map.find("h2");
|
|
630
|
+
if (tmp_h2 != map.end()) {
|
|
631
|
+
fromRawValue(context, tmp_h2->second, result.h2);
|
|
632
|
+
}
|
|
633
|
+
auto tmp_h3 = map.find("h3");
|
|
634
|
+
if (tmp_h3 != map.end()) {
|
|
635
|
+
fromRawValue(context, tmp_h3->second, result.h3);
|
|
636
|
+
}
|
|
637
|
+
auto tmp_h4 = map.find("h4");
|
|
638
|
+
if (tmp_h4 != map.end()) {
|
|
639
|
+
fromRawValue(context, tmp_h4->second, result.h4);
|
|
640
|
+
}
|
|
641
|
+
auto tmp_h5 = map.find("h5");
|
|
642
|
+
if (tmp_h5 != map.end()) {
|
|
643
|
+
fromRawValue(context, tmp_h5->second, result.h5);
|
|
644
|
+
}
|
|
645
|
+
auto tmp_h6 = map.find("h6");
|
|
646
|
+
if (tmp_h6 != map.end()) {
|
|
647
|
+
fromRawValue(context, tmp_h6->second, result.h6);
|
|
648
|
+
}
|
|
649
|
+
auto tmp_blockquote = map.find("blockquote");
|
|
650
|
+
if (tmp_blockquote != map.end()) {
|
|
651
|
+
fromRawValue(context, tmp_blockquote->second, result.blockquote);
|
|
652
|
+
}
|
|
653
|
+
auto tmp_codeblock = map.find("codeblock");
|
|
654
|
+
if (tmp_codeblock != map.end()) {
|
|
655
|
+
fromRawValue(context, tmp_codeblock->second, result.codeblock);
|
|
656
|
+
}
|
|
657
|
+
auto tmp_code = map.find("code");
|
|
658
|
+
if (tmp_code != map.end()) {
|
|
659
|
+
fromRawValue(context, tmp_code->second, result.code);
|
|
660
|
+
}
|
|
661
|
+
auto tmp_a = map.find("a");
|
|
662
|
+
if (tmp_a != map.end()) {
|
|
663
|
+
fromRawValue(context, tmp_a->second, result.a);
|
|
664
|
+
}
|
|
665
|
+
auto tmp_mention = map.find("mention");
|
|
666
|
+
if (tmp_mention != map.end()) {
|
|
667
|
+
fromRawValue(context, tmp_mention->second, result.mention);
|
|
668
|
+
}
|
|
669
|
+
auto tmp_ol = map.find("ol");
|
|
670
|
+
if (tmp_ol != map.end()) {
|
|
671
|
+
fromRawValue(context, tmp_ol->second, result.ol);
|
|
672
|
+
}
|
|
673
|
+
auto tmp_ul = map.find("ul");
|
|
674
|
+
if (tmp_ul != map.end()) {
|
|
675
|
+
fromRawValue(context, tmp_ul->second, result.ul);
|
|
676
|
+
}
|
|
677
|
+
auto tmp_ulCheckbox = map.find("ulCheckbox");
|
|
678
|
+
if (tmp_ulCheckbox != map.end()) {
|
|
679
|
+
fromRawValue(context, tmp_ulCheckbox->second, result.ulCheckbox);
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
static inline std::string toString(const EnrichedTextInputViewHtmlStyleStruct &value) {
|
|
684
|
+
return "[Object EnrichedTextInputViewHtmlStyleStruct]";
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
688
|
+
static inline folly::dynamic toDynamic(const EnrichedTextInputViewHtmlStyleStruct &value) {
|
|
689
|
+
return value.toDynamic();
|
|
690
|
+
}
|
|
691
|
+
#endif
|
|
692
|
+
|
|
693
|
+
struct EnrichedTextInputViewLinkRegexStruct {
|
|
694
|
+
std::string pattern{};
|
|
695
|
+
bool caseInsensitive{false};
|
|
696
|
+
bool dotAll{false};
|
|
697
|
+
bool isDisabled{false};
|
|
698
|
+
bool isDefault{false};
|
|
699
|
+
|
|
700
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
701
|
+
bool operator==(const EnrichedTextInputViewLinkRegexStruct&) const = default;
|
|
702
|
+
|
|
703
|
+
folly::dynamic toDynamic() const {
|
|
704
|
+
folly::dynamic result = folly::dynamic::object();
|
|
705
|
+
result["pattern"] = pattern;
|
|
706
|
+
result["caseInsensitive"] = caseInsensitive;
|
|
707
|
+
result["dotAll"] = dotAll;
|
|
708
|
+
result["isDisabled"] = isDisabled;
|
|
709
|
+
result["isDefault"] = isDefault;
|
|
710
|
+
return result;
|
|
711
|
+
}
|
|
712
|
+
#endif
|
|
713
|
+
};
|
|
714
|
+
|
|
715
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedTextInputViewLinkRegexStruct &result) {
|
|
716
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
717
|
+
|
|
718
|
+
auto tmp_pattern = map.find("pattern");
|
|
719
|
+
if (tmp_pattern != map.end()) {
|
|
720
|
+
fromRawValue(context, tmp_pattern->second, result.pattern);
|
|
721
|
+
}
|
|
722
|
+
auto tmp_caseInsensitive = map.find("caseInsensitive");
|
|
723
|
+
if (tmp_caseInsensitive != map.end()) {
|
|
724
|
+
fromRawValue(context, tmp_caseInsensitive->second, result.caseInsensitive);
|
|
725
|
+
}
|
|
726
|
+
auto tmp_dotAll = map.find("dotAll");
|
|
727
|
+
if (tmp_dotAll != map.end()) {
|
|
728
|
+
fromRawValue(context, tmp_dotAll->second, result.dotAll);
|
|
729
|
+
}
|
|
730
|
+
auto tmp_isDisabled = map.find("isDisabled");
|
|
731
|
+
if (tmp_isDisabled != map.end()) {
|
|
732
|
+
fromRawValue(context, tmp_isDisabled->second, result.isDisabled);
|
|
733
|
+
}
|
|
734
|
+
auto tmp_isDefault = map.find("isDefault");
|
|
735
|
+
if (tmp_isDefault != map.end()) {
|
|
736
|
+
fromRawValue(context, tmp_isDefault->second, result.isDefault);
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
static inline std::string toString(const EnrichedTextInputViewLinkRegexStruct &value) {
|
|
741
|
+
return "[Object EnrichedTextInputViewLinkRegexStruct]";
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
745
|
+
static inline folly::dynamic toDynamic(const EnrichedTextInputViewLinkRegexStruct &value) {
|
|
746
|
+
return value.toDynamic();
|
|
747
|
+
}
|
|
748
|
+
#endif
|
|
749
|
+
|
|
750
|
+
struct EnrichedTextInputViewContextMenuItemsStruct {
|
|
751
|
+
std::string text{};
|
|
752
|
+
|
|
753
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
754
|
+
bool operator==(const EnrichedTextInputViewContextMenuItemsStruct&) const = default;
|
|
755
|
+
|
|
756
|
+
folly::dynamic toDynamic() const {
|
|
757
|
+
folly::dynamic result = folly::dynamic::object();
|
|
758
|
+
result["text"] = text;
|
|
759
|
+
return result;
|
|
760
|
+
}
|
|
761
|
+
#endif
|
|
762
|
+
};
|
|
763
|
+
|
|
764
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedTextInputViewContextMenuItemsStruct &result) {
|
|
765
|
+
auto map = (std::unordered_map<std::string, RawValue>)value;
|
|
766
|
+
|
|
767
|
+
auto tmp_text = map.find("text");
|
|
768
|
+
if (tmp_text != map.end()) {
|
|
769
|
+
fromRawValue(context, tmp_text->second, result.text);
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
static inline std::string toString(const EnrichedTextInputViewContextMenuItemsStruct &value) {
|
|
774
|
+
return "[Object EnrichedTextInputViewContextMenuItemsStruct]";
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
778
|
+
static inline folly::dynamic toDynamic(const EnrichedTextInputViewContextMenuItemsStruct &value) {
|
|
779
|
+
return value.toDynamic();
|
|
780
|
+
}
|
|
781
|
+
#endif
|
|
782
|
+
|
|
783
|
+
static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector<EnrichedTextInputViewContextMenuItemsStruct> &result) {
|
|
784
|
+
auto items = (std::vector<RawValue>)value;
|
|
785
|
+
for (const auto &item : items) {
|
|
786
|
+
EnrichedTextInputViewContextMenuItemsStruct newItem;
|
|
787
|
+
fromRawValue(context, item, newItem);
|
|
788
|
+
result.emplace_back(newItem);
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
class EnrichedTextInputViewProps final : public ViewProps {
|
|
793
|
+
public:
|
|
794
|
+
EnrichedTextInputViewProps() = default;
|
|
795
|
+
EnrichedTextInputViewProps(const PropsParserContext& context, const EnrichedTextInputViewProps &sourceProps, const RawProps &rawProps);
|
|
796
|
+
|
|
797
|
+
#pragma mark - Props
|
|
798
|
+
|
|
799
|
+
bool autoFocus{false};
|
|
800
|
+
bool editable{false};
|
|
801
|
+
std::string defaultValue{};
|
|
802
|
+
std::string placeholder{};
|
|
803
|
+
SharedColor placeholderTextColor{};
|
|
804
|
+
std::vector<std::string> mentionIndicators{};
|
|
805
|
+
SharedColor cursorColor{};
|
|
806
|
+
SharedColor selectionColor{};
|
|
807
|
+
std::string autoCapitalize{};
|
|
808
|
+
EnrichedTextInputViewHtmlStyleStruct htmlStyle{};
|
|
809
|
+
bool scrollEnabled{false};
|
|
810
|
+
EnrichedTextInputViewLinkRegexStruct linkRegex{};
|
|
811
|
+
std::vector<EnrichedTextInputViewContextMenuItemsStruct> contextMenuItems{};
|
|
812
|
+
std::string returnKeyType{};
|
|
813
|
+
std::string returnKeyLabel{};
|
|
814
|
+
std::string submitBehavior{};
|
|
815
|
+
SharedColor color{};
|
|
816
|
+
Float fontSize{0.0};
|
|
817
|
+
Float lineHeight{0.0};
|
|
818
|
+
std::string fontFamily{};
|
|
819
|
+
std::string fontWeight{};
|
|
820
|
+
std::string fontStyle{};
|
|
821
|
+
bool isOnChangeHtmlSet{false};
|
|
822
|
+
bool isOnChangeTextSet{false};
|
|
823
|
+
bool androidExperimentalSynchronousEvents{false};
|
|
824
|
+
bool useHtmlNormalizer{false};
|
|
825
|
+
|
|
826
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
827
|
+
ComponentName getDiffPropsImplementationTarget() const override;
|
|
828
|
+
|
|
829
|
+
folly::dynamic getDiffProps(const Props* prevProps) const override;
|
|
830
|
+
#endif
|
|
831
|
+
};
|
|
832
|
+
|
|
833
|
+
} // namespace facebook::react
|