react-native-enriched 0.0.0 → 0.1.0
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 +869 -0
- package/ReactNativeEnriched.podspec +27 -0
- package/android/build.gradle +101 -0
- package/android/generated/java/com/facebook/react/viewmanagers/EnrichedTextInputViewManagerDelegate.java +146 -0
- package/android/generated/java/com/facebook/react/viewmanagers/EnrichedTextInputViewManagerInterface.java +55 -0
- package/android/generated/jni/react/renderer/components/RNEnrichedTextInputViewSpec/ComponentDescriptors.cpp +22 -0
- package/android/generated/jni/react/renderer/components/RNEnrichedTextInputViewSpec/ComponentDescriptors.h +24 -0
- package/android/generated/jni/react/renderer/components/RNEnrichedTextInputViewSpec/EventEmitters.cpp +118 -0
- package/android/generated/jni/react/renderer/components/RNEnrichedTextInputViewSpec/EventEmitters.h +95 -0
- package/android/generated/jni/react/renderer/components/RNEnrichedTextInputViewSpec/Props.cpp +128 -0
- package/android/generated/jni/react/renderer/components/RNEnrichedTextInputViewSpec/Props.h +577 -0
- package/android/generated/jni/react/renderer/components/RNEnrichedTextInputViewSpec/ShadowNodes.cpp +17 -0
- package/android/generated/jni/react/renderer/components/RNEnrichedTextInputViewSpec/ShadowNodes.h +23 -0
- package/android/generated/jni/react/renderer/components/RNEnrichedTextInputViewSpec/States.cpp +16 -0
- package/android/generated/jni/react/renderer/components/RNEnrichedTextInputViewSpec/States.h +20 -0
- package/android/gradle.properties +5 -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/EnrichedTextInputView.kt +535 -0
- package/android/src/main/java/com/swmansion/enriched/EnrichedTextInputViewLayoutManager.kt +64 -0
- package/android/src/main/java/com/swmansion/enriched/EnrichedTextInputViewManager.kt +292 -0
- package/android/src/main/java/com/swmansion/enriched/EnrichedTextInputViewPackage.kt +19 -0
- package/android/src/main/java/com/swmansion/enriched/events/MentionHandler.kt +40 -0
- package/android/src/main/java/com/swmansion/enriched/events/OnChangeHtmlEvent.kt +28 -0
- package/android/src/main/java/com/swmansion/enriched/events/OnChangeSelectionEvent.kt +29 -0
- package/android/src/main/java/com/swmansion/enriched/events/OnChangeStateEvent.kt +24 -0
- package/android/src/main/java/com/swmansion/enriched/events/OnChangeTextEvent.kt +30 -0
- package/android/src/main/java/com/swmansion/enriched/events/OnInputBlurEvent.kt +27 -0
- package/android/src/main/java/com/swmansion/enriched/events/OnInputFocusEvent.kt +27 -0
- package/android/src/main/java/com/swmansion/enriched/events/OnLinkDetectedEvent.kt +30 -0
- package/android/src/main/java/com/swmansion/enriched/events/OnMentionDetectedEvent.kt +29 -0
- package/android/src/main/java/com/swmansion/enriched/events/OnMentionEvent.kt +33 -0
- package/android/src/main/java/com/swmansion/enriched/spans/EnrichedBlockQuoteSpan.kt +34 -0
- package/android/src/main/java/com/swmansion/enriched/spans/EnrichedBoldSpan.kt +10 -0
- package/android/src/main/java/com/swmansion/enriched/spans/EnrichedCodeBlockSpan.kt +38 -0
- package/android/src/main/java/com/swmansion/enriched/spans/EnrichedH1Span.kt +17 -0
- package/android/src/main/java/com/swmansion/enriched/spans/EnrichedH2Span.kt +17 -0
- package/android/src/main/java/com/swmansion/enriched/spans/EnrichedH3Span.kt +17 -0
- package/android/src/main/java/com/swmansion/enriched/spans/EnrichedImageSpan.kt +41 -0
- package/android/src/main/java/com/swmansion/enriched/spans/EnrichedInlineCodeSpan.kt +16 -0
- package/android/src/main/java/com/swmansion/enriched/spans/EnrichedItalicSpan.kt +10 -0
- package/android/src/main/java/com/swmansion/enriched/spans/EnrichedLinkSpan.kt +24 -0
- package/android/src/main/java/com/swmansion/enriched/spans/EnrichedMentionSpan.kt +36 -0
- package/android/src/main/java/com/swmansion/enriched/spans/EnrichedOrderedListSpan.kt +71 -0
- package/android/src/main/java/com/swmansion/enriched/spans/EnrichedSpans.kt +111 -0
- package/android/src/main/java/com/swmansion/enriched/spans/EnrichedStrikeThroughSpan.kt +9 -0
- package/android/src/main/java/com/swmansion/enriched/spans/EnrichedUnderlineSpan.kt +9 -0
- package/android/src/main/java/com/swmansion/enriched/spans/EnrichedUnorderedListSpan.kt +49 -0
- package/android/src/main/java/com/swmansion/enriched/spans/interfaces/EnrichedBlockSpan.kt +4 -0
- package/android/src/main/java/com/swmansion/enriched/spans/interfaces/EnrichedHeadingSpan.kt +4 -0
- package/android/src/main/java/com/swmansion/enriched/spans/interfaces/EnrichedInlineSpan.kt +4 -0
- package/android/src/main/java/com/swmansion/enriched/spans/interfaces/EnrichedParagraphSpan.kt +4 -0
- package/android/src/main/java/com/swmansion/enriched/spans/interfaces/EnrichedSpan.kt +4 -0
- package/android/src/main/java/com/swmansion/enriched/spans/interfaces/EnrichedZeroWidthSpaceSpan.kt +5 -0
- package/android/src/main/java/com/swmansion/enriched/styles/HtmlStyle.kt +227 -0
- package/android/src/main/java/com/swmansion/enriched/styles/InlineStyles.kt +146 -0
- package/android/src/main/java/com/swmansion/enriched/styles/ListStyles.kt +173 -0
- package/android/src/main/java/com/swmansion/enriched/styles/ParagraphStyles.kt +186 -0
- package/android/src/main/java/com/swmansion/enriched/styles/ParametrizedStyles.kt +223 -0
- package/android/src/main/java/com/swmansion/enriched/utils/EnrichedParser.java +857 -0
- package/android/src/main/java/com/swmansion/enriched/utils/EnrichedSelection.kt +285 -0
- package/android/src/main/java/com/swmansion/enriched/utils/EnrichedSpanState.kt +204 -0
- package/android/src/main/java/com/swmansion/enriched/utils/Utils.kt +91 -0
- package/android/src/main/java/com/swmansion/enriched/watchers/EnrichedSpanWatcher.kt +73 -0
- package/android/src/main/java/com/swmansion/enriched/watchers/EnrichedTextWatcher.kt +51 -0
- package/android/src/main/new_arch/CMakeLists.txt +56 -0
- package/android/src/main/new_arch/RNEnrichedTextInputViewSpec.cpp +22 -0
- package/android/src/main/new_arch/RNEnrichedTextInputViewSpec.h +26 -0
- package/android/src/main/new_arch/react/renderer/components/RNEnrichedTextInputViewSpec/EnrichedTextInputComponentDescriptor.h +35 -0
- package/android/src/main/new_arch/react/renderer/components/RNEnrichedTextInputViewSpec/EnrichedTextInputMeasurementManager.cpp +51 -0
- package/android/src/main/new_arch/react/renderer/components/RNEnrichedTextInputViewSpec/EnrichedTextInputMeasurementManager.h +26 -0
- package/android/src/main/new_arch/react/renderer/components/RNEnrichedTextInputViewSpec/EnrichedTextInputShadowNode.cpp +34 -0
- package/android/src/main/new_arch/react/renderer/components/RNEnrichedTextInputViewSpec/EnrichedTextInputShadowNode.h +54 -0
- package/android/src/main/new_arch/react/renderer/components/RNEnrichedTextInputViewSpec/EnrichedTextInputState.cpp +9 -0
- package/android/src/main/new_arch/react/renderer/components/RNEnrichedTextInputViewSpec/EnrichedTextInputState.h +25 -0
- package/ios/EnrichedTextInputView.h +33 -0
- package/ios/EnrichedTextInputView.mm +1190 -0
- package/ios/EnrichedTextInputViewManager.mm +13 -0
- package/ios/config/InputConfig.h +67 -0
- package/ios/config/InputConfig.mm +382 -0
- package/ios/generated/RNEnrichedTextInputViewSpec/ComponentDescriptors.cpp +22 -0
- package/ios/generated/RNEnrichedTextInputViewSpec/ComponentDescriptors.h +24 -0
- package/ios/generated/RNEnrichedTextInputViewSpec/EventEmitters.cpp +118 -0
- package/ios/generated/RNEnrichedTextInputViewSpec/EventEmitters.h +95 -0
- package/ios/generated/RNEnrichedTextInputViewSpec/Props.cpp +128 -0
- package/ios/generated/RNEnrichedTextInputViewSpec/Props.h +577 -0
- package/ios/generated/RNEnrichedTextInputViewSpec/RCTComponentViewHelpers.h +384 -0
- package/ios/generated/RNEnrichedTextInputViewSpec/ShadowNodes.cpp +17 -0
- package/ios/generated/RNEnrichedTextInputViewSpec/ShadowNodes.h +23 -0
- package/ios/generated/RNEnrichedTextInputViewSpec/States.cpp +16 -0
- package/ios/generated/RNEnrichedTextInputViewSpec/States.h +20 -0
- package/ios/inputParser/InputParser.h +11 -0
- package/ios/inputParser/InputParser.mm +669 -0
- package/ios/inputTextView/InputTextView.h +6 -0
- package/ios/inputTextView/InputTextView.mm +115 -0
- package/ios/internals/EnrichedTextInputViewComponentDescriptor.h +17 -0
- package/ios/internals/EnrichedTextInputViewShadowNode.h +40 -0
- package/ios/internals/EnrichedTextInputViewShadowNode.mm +83 -0
- package/ios/internals/EnrichedTextInputViewState.cpp +10 -0
- package/ios/internals/EnrichedTextInputViewState.h +20 -0
- package/ios/styles/BlockQuoteStyle.mm +248 -0
- package/ios/styles/BoldStyle.mm +122 -0
- package/ios/styles/H1Style.mm +10 -0
- package/ios/styles/H2Style.mm +10 -0
- package/ios/styles/H3Style.mm +10 -0
- package/ios/styles/HeadingStyleBase.mm +144 -0
- package/ios/styles/InlineCodeStyle.mm +163 -0
- package/ios/styles/ItalicStyle.mm +110 -0
- package/ios/styles/LinkStyle.mm +463 -0
- package/ios/styles/MentionStyle.mm +476 -0
- package/ios/styles/OrderedListStyle.mm +225 -0
- package/ios/styles/StrikethroughStyle.mm +80 -0
- package/ios/styles/UnderlineStyle.mm +112 -0
- package/ios/styles/UnorderedListStyle.mm +225 -0
- package/ios/utils/BaseStyleProtocol.h +16 -0
- package/ios/utils/ColorExtension.h +6 -0
- package/ios/utils/ColorExtension.mm +27 -0
- package/ios/utils/FontExtension.h +13 -0
- package/ios/utils/FontExtension.mm +91 -0
- package/ios/utils/LayoutManagerExtension.h +6 -0
- package/ios/utils/LayoutManagerExtension.mm +171 -0
- package/ios/utils/LinkData.h +9 -0
- package/ios/utils/LinkData.mm +4 -0
- package/ios/utils/MentionParams.h +9 -0
- package/ios/utils/MentionParams.mm +4 -0
- package/ios/utils/MentionStyleProps.h +13 -0
- package/ios/utils/MentionStyleProps.mm +56 -0
- package/ios/utils/OccurenceUtils.h +37 -0
- package/ios/utils/OccurenceUtils.mm +124 -0
- package/ios/utils/ParagraphsUtils.h +7 -0
- package/ios/utils/ParagraphsUtils.mm +54 -0
- package/ios/utils/StringExtension.h +15 -0
- package/ios/utils/StringExtension.mm +57 -0
- package/ios/utils/StyleHeaders.h +74 -0
- package/ios/utils/StylePair.h +9 -0
- package/ios/utils/StylePair.mm +4 -0
- package/ios/utils/StyleTypeEnum.h +22 -0
- package/ios/utils/TextDecorationLineEnum.h +6 -0
- package/ios/utils/TextDecorationLineEnum.mm +4 -0
- package/ios/utils/TextInsertionUtils.h +6 -0
- package/ios/utils/TextInsertionUtils.mm +48 -0
- package/ios/utils/WordsUtils.h +6 -0
- package/ios/utils/WordsUtils.mm +88 -0
- package/ios/utils/ZeroWidthSpaceUtils.h +7 -0
- package/ios/utils/ZeroWidthSpaceUtils.mm +164 -0
- package/lib/module/EnrichedTextInput.js +191 -0
- package/lib/module/EnrichedTextInput.js.map +1 -0
- package/lib/module/EnrichedTextInputNativeComponent.ts +235 -0
- package/lib/module/index.js +4 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/normalizeHtmlStyle.js +141 -0
- package/lib/module/normalizeHtmlStyle.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/EnrichedTextInput.d.ts +113 -0
- package/lib/typescript/src/EnrichedTextInput.d.ts.map +1 -0
- package/lib/typescript/src/EnrichedTextInputNativeComponent.d.ts +160 -0
- package/lib/typescript/src/EnrichedTextInputNativeComponent.d.ts.map +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/normalizeHtmlStyle.d.ts +4 -0
- package/lib/typescript/src/normalizeHtmlStyle.d.ts.map +1 -0
- package/package.json +172 -1
- package/react-native.config.js +13 -0
- package/src/EnrichedTextInput.tsx +358 -0
- package/src/EnrichedTextInputNativeComponent.ts +235 -0
- package/src/index.tsx +9 -0
- package/src/normalizeHtmlStyle.ts +188 -0
|
@@ -0,0 +1,95 @@
|
|
|
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: GenerateEventEmitterH.js
|
|
9
|
+
*/
|
|
10
|
+
#pragma once
|
|
11
|
+
|
|
12
|
+
#include <react/renderer/components/view/ViewEventEmitter.h>
|
|
13
|
+
#include <folly/dynamic.h>
|
|
14
|
+
|
|
15
|
+
namespace facebook::react {
|
|
16
|
+
class EnrichedTextInputViewEventEmitter : public ViewEventEmitter {
|
|
17
|
+
public:
|
|
18
|
+
using ViewEventEmitter::ViewEventEmitter;
|
|
19
|
+
|
|
20
|
+
struct OnInputFocus {
|
|
21
|
+
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
struct OnInputBlur {
|
|
25
|
+
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
struct OnChangeText {
|
|
29
|
+
std::string value;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
struct OnChangeHtml {
|
|
33
|
+
std::string value;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
struct OnChangeState {
|
|
37
|
+
bool isBold;
|
|
38
|
+
bool isItalic;
|
|
39
|
+
bool isUnderline;
|
|
40
|
+
bool isStrikeThrough;
|
|
41
|
+
bool isInlineCode;
|
|
42
|
+
bool isH1;
|
|
43
|
+
bool isH2;
|
|
44
|
+
bool isH3;
|
|
45
|
+
bool isCodeBlock;
|
|
46
|
+
bool isBlockQuote;
|
|
47
|
+
bool isOrderedList;
|
|
48
|
+
bool isUnorderedList;
|
|
49
|
+
bool isLink;
|
|
50
|
+
bool isImage;
|
|
51
|
+
bool isMention;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
struct OnLinkDetected {
|
|
55
|
+
std::string text;
|
|
56
|
+
std::string url;
|
|
57
|
+
int start;
|
|
58
|
+
int end;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
struct OnMentionDetected {
|
|
62
|
+
std::string text;
|
|
63
|
+
std::string indicator;
|
|
64
|
+
std::string payload;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
struct OnMention {
|
|
68
|
+
std::string indicator;
|
|
69
|
+
folly::dynamic text;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
struct OnChangeSelection {
|
|
73
|
+
int start;
|
|
74
|
+
int end;
|
|
75
|
+
std::string text;
|
|
76
|
+
};
|
|
77
|
+
void onInputFocus(OnInputFocus value) const;
|
|
78
|
+
|
|
79
|
+
void onInputBlur(OnInputBlur value) const;
|
|
80
|
+
|
|
81
|
+
void onChangeText(OnChangeText value) const;
|
|
82
|
+
|
|
83
|
+
void onChangeHtml(OnChangeHtml value) const;
|
|
84
|
+
|
|
85
|
+
void onChangeState(OnChangeState value) const;
|
|
86
|
+
|
|
87
|
+
void onLinkDetected(OnLinkDetected value) const;
|
|
88
|
+
|
|
89
|
+
void onMentionDetected(OnMentionDetected value) const;
|
|
90
|
+
|
|
91
|
+
void onMention(OnMention value) const;
|
|
92
|
+
|
|
93
|
+
void onChangeSelection(OnChangeSelection value) const;
|
|
94
|
+
};
|
|
95
|
+
} // namespace facebook::react
|
|
@@ -0,0 +1,128 @@
|
|
|
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: GeneratePropsCpp.js
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
#include "Props.h"
|
|
12
|
+
#include <folly/dynamic.h>
|
|
13
|
+
#include <react/renderer/core/PropsParserContext.h>
|
|
14
|
+
#include <react/renderer/core/propsConversions.h>
|
|
15
|
+
|
|
16
|
+
namespace facebook::react {
|
|
17
|
+
|
|
18
|
+
EnrichedTextInputViewProps::EnrichedTextInputViewProps(
|
|
19
|
+
const PropsParserContext &context,
|
|
20
|
+
const EnrichedTextInputViewProps &sourceProps,
|
|
21
|
+
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
|
|
22
|
+
|
|
23
|
+
autoFocus(convertRawProp(context, rawProps, "autoFocus", sourceProps.autoFocus, {false})),
|
|
24
|
+
editable(convertRawProp(context, rawProps, "editable", sourceProps.editable, {false})),
|
|
25
|
+
defaultValue(convertRawProp(context, rawProps, "defaultValue", sourceProps.defaultValue, {})),
|
|
26
|
+
placeholder(convertRawProp(context, rawProps, "placeholder", sourceProps.placeholder, {})),
|
|
27
|
+
placeholderTextColor(convertRawProp(context, rawProps, "placeholderTextColor", sourceProps.placeholderTextColor, {})),
|
|
28
|
+
mentionIndicators(convertRawProp(context, rawProps, "mentionIndicators", sourceProps.mentionIndicators, {})),
|
|
29
|
+
cursorColor(convertRawProp(context, rawProps, "cursorColor", sourceProps.cursorColor, {})),
|
|
30
|
+
selectionColor(convertRawProp(context, rawProps, "selectionColor", sourceProps.selectionColor, {})),
|
|
31
|
+
autoCapitalize(convertRawProp(context, rawProps, "autoCapitalize", sourceProps.autoCapitalize, {})),
|
|
32
|
+
htmlStyle(convertRawProp(context, rawProps, "htmlStyle", sourceProps.htmlStyle, {})),
|
|
33
|
+
color(convertRawProp(context, rawProps, "color", sourceProps.color, {})),
|
|
34
|
+
fontSize(convertRawProp(context, rawProps, "fontSize", sourceProps.fontSize, {0.0})),
|
|
35
|
+
fontFamily(convertRawProp(context, rawProps, "fontFamily", sourceProps.fontFamily, {})),
|
|
36
|
+
fontWeight(convertRawProp(context, rawProps, "fontWeight", sourceProps.fontWeight, {})),
|
|
37
|
+
fontStyle(convertRawProp(context, rawProps, "fontStyle", sourceProps.fontStyle, {})),
|
|
38
|
+
isOnChangeHtmlSet(convertRawProp(context, rawProps, "isOnChangeHtmlSet", sourceProps.isOnChangeHtmlSet, {false})),
|
|
39
|
+
androidExperimentalSynchronousEvents(convertRawProp(context, rawProps, "androidExperimentalSynchronousEvents", sourceProps.androidExperimentalSynchronousEvents, {false})) {}
|
|
40
|
+
|
|
41
|
+
#ifdef RN_SERIALIZABLE_STATE
|
|
42
|
+
ComponentName EnrichedTextInputViewProps::getDiffPropsImplementationTarget() const {
|
|
43
|
+
return "EnrichedTextInputView";
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
folly::dynamic EnrichedTextInputViewProps::getDiffProps(
|
|
47
|
+
const Props* prevProps) const {
|
|
48
|
+
static const auto defaultProps = EnrichedTextInputViewProps();
|
|
49
|
+
const EnrichedTextInputViewProps* oldProps = prevProps == nullptr
|
|
50
|
+
? &defaultProps
|
|
51
|
+
: static_cast<const EnrichedTextInputViewProps*>(prevProps);
|
|
52
|
+
if (this == oldProps) {
|
|
53
|
+
return folly::dynamic::object();
|
|
54
|
+
}
|
|
55
|
+
folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
|
|
56
|
+
|
|
57
|
+
if (autoFocus != oldProps->autoFocus) {
|
|
58
|
+
result["autoFocus"] = autoFocus;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (editable != oldProps->editable) {
|
|
62
|
+
result["editable"] = editable;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (defaultValue != oldProps->defaultValue) {
|
|
66
|
+
result["defaultValue"] = defaultValue;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (placeholder != oldProps->placeholder) {
|
|
70
|
+
result["placeholder"] = placeholder;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if (placeholderTextColor != oldProps->placeholderTextColor) {
|
|
74
|
+
result["placeholderTextColor"] = *placeholderTextColor;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (mentionIndicators != oldProps->mentionIndicators) {
|
|
78
|
+
result["mentionIndicators"] = toDynamic(mentionIndicators);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if (cursorColor != oldProps->cursorColor) {
|
|
82
|
+
result["cursorColor"] = *cursorColor;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
if (selectionColor != oldProps->selectionColor) {
|
|
86
|
+
result["selectionColor"] = *selectionColor;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if (autoCapitalize != oldProps->autoCapitalize) {
|
|
90
|
+
result["autoCapitalize"] = autoCapitalize;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
if (htmlStyle != oldProps->htmlStyle) {
|
|
94
|
+
result["htmlStyle"] = toDynamic(htmlStyle);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
if (color != oldProps->color) {
|
|
98
|
+
result["color"] = *color;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
if ((fontSize != oldProps->fontSize) && !(std::isnan(fontSize) && std::isnan(oldProps->fontSize))) {
|
|
102
|
+
result["fontSize"] = fontSize;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if (fontFamily != oldProps->fontFamily) {
|
|
106
|
+
result["fontFamily"] = fontFamily;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (fontWeight != oldProps->fontWeight) {
|
|
110
|
+
result["fontWeight"] = fontWeight;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (fontStyle != oldProps->fontStyle) {
|
|
114
|
+
result["fontStyle"] = fontStyle;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
if (isOnChangeHtmlSet != oldProps->isOnChangeHtmlSet) {
|
|
118
|
+
result["isOnChangeHtmlSet"] = isOnChangeHtmlSet;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (androidExperimentalSynchronousEvents != oldProps->androidExperimentalSynchronousEvents) {
|
|
122
|
+
result["androidExperimentalSynchronousEvents"] = androidExperimentalSynchronousEvents;
|
|
123
|
+
}
|
|
124
|
+
return result;
|
|
125
|
+
}
|
|
126
|
+
#endif
|
|
127
|
+
|
|
128
|
+
} // namespace facebook::react
|