-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathEnrichedTextViewShadowNode.h
More file actions
34 lines (28 loc) · 1.12 KB
/
Copy pathEnrichedTextViewShadowNode.h
File metadata and controls
34 lines (28 loc) · 1.12 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
32
33
34
#pragma once
#include "EnrichedTextViewState.h"
#include "ios/generated/ReactCodegen/ReactNativeEnrichedSpec/EventEmitters.h"
#include "ios/generated/ReactCodegen/ReactNativeEnrichedSpec/Props.h"
#include <jsi/jsi.h>
#include <react/renderer/components/view/ConcreteViewShadowNode.h>
#include <react/renderer/core/LayoutConstraints.h>
namespace facebook::react {
JSI_EXPORT extern const char EnrichedTextViewComponentName[];
class EnrichedTextViewShadowNode
: public ConcreteViewShadowNode<
EnrichedTextViewComponentName, EnrichedTextViewProps,
EnrichedTextViewEventEmitter, EnrichedTextViewState> {
public:
using ConcreteViewShadowNode::ConcreteViewShadowNode;
Size
measureContent(const LayoutContext &layoutContext,
const LayoutConstraints &layoutConstraints) const override;
static ShadowNodeTraits BaseTraits() {
auto traits = ConcreteViewShadowNode::BaseTraits();
traits.set(ShadowNodeTraits::Trait::LeafYogaNode);
traits.set(ShadowNodeTraits::Trait::MeasurableYogaNode);
return traits;
}
private:
id setupMockTextView_() const;
};
} // namespace facebook::react