-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathEnrichedTextInputProps.cpp
More file actions
31 lines (26 loc) · 1.03 KB
/
Copy pathEnrichedTextInputProps.cpp
File metadata and controls
31 lines (26 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "EnrichedTextInputProps.h"
#include <react/renderer/core/PropsParserContext.h>
#include <react/renderer/core/propsConversions.h>
namespace facebook::react {
EnrichedTextInputProps::EnrichedTextInputProps(
const PropsParserContext &context,
const EnrichedTextInputProps &sourceProps,
const RawProps &rawProps): ViewProps(context, sourceProps, rawProps) {}
#ifdef RN_SERIALIZABLE_STATE
ComponentName EnrichedTextInputProps::getDiffPropsImplementationTarget() const {
return "EnrichedTextInputView";
}
folly::dynamic EnrichedTextInputProps::getDiffProps(
const Props* prevProps) const {
static const auto defaultProps = EnrichedTextInputProps();
const EnrichedTextInputProps* oldProps = prevProps == nullptr
? &defaultProps
: static_cast<const EnrichedTextInputProps*>(prevProps);
if (this == oldProps) {
return folly::dynamic::object();
}
folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
return result;
}
#endif
} // namespace facebook::react