xref: /expo/packages/expo-modules-core/common/cpp/fabric/ExpoViewComponentDescriptor.cpp (revision 98f365fa)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2022-present 650 Industries. All rights reserved.
2 
3 #include "ExpoViewComponentDescriptor.h"
4 
5 namespace expo {
6 
7 ExpoViewComponentDescriptor::ExpoViewComponentDescriptor(facebook::react::ComponentDescriptorParameters const &parameters)
8   : facebook::react::ConcreteComponentDescriptor<ExpoViewShadowNode>(parameters) {
9 }
10 
11 facebook::react::ComponentHandle ExpoViewComponentDescriptor::getComponentHandle() const {
12   return reinterpret_cast<facebook::react::ComponentHandle>(getComponentName());
13 }
14 
15 facebook::react::ComponentName ExpoViewComponentDescriptor::getComponentName() const {
16   return std::static_pointer_cast<std::string const>(this->flavor_)->c_str();
17 }
18 
19 } // namespace expo
20 

served by {OpenGrok

Last Index Update: Tue Oct 21 18:42:31 GMT 2025