Skip to content

Commit 81e368e

Browse files
sammy-SCfacebook-github-bot
authored andcommitted
introduce ShadowNode::IdentityTrait (facebook#41603)
Summary: Pull Request resolved: facebook#41603 changelog: [internal] `ShadowNode::IdentityTrait` was already a thing. Let's make it available in ConcreteComponentDescriptor. Reviewed By: rshest Differential Revision: D51471666 fbshipit-source-id: 7919a9b7238d766ee3913a5ab239bf254fab0996
1 parent 91d4b1b commit 81e368e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

packages/react-native/ReactCommon/react/renderer/core/ConcreteShadowNode.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ class ConcreteShadowNode : public BaseShadowNodeT {
7070
return BaseShadowNodeT::BaseTraits();
7171
}
7272

73+
static ShadowNodeTraits::Trait IdentifierTrait() {
74+
return BaseShadowNodeT::IdentifierTrait();
75+
}
76+
7377
static UnsharedConcreteProps Props(
7478
const PropsParserContext& context,
7579
const RawProps& rawProps,

packages/react-native/ReactCommon/react/renderer/core/ShadowNode.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ class ShadowNode : public Sealable,
5959
return ShadowNodeTraits{};
6060
}
6161

62+
static ShadowNodeTraits::Trait IdentifierTrait() {
63+
return ShadowNodeTraits::Trait::None;
64+
}
65+
6266
#pragma mark - Constructors
6367

6468
/*

0 commit comments

Comments
 (0)