#pragma once #include #include #include #include #include #include namespace reanimated { using namespace facebook; using namespace react; class PropValueProcessor { public: static const std::unordered_set layoutProps; static const std::unordered_set styleProps; static std::string processPropValue( const std::string &propName, const std::shared_ptr &shadowNode, jsi::Runtime &rt); private: static std::string processLayoutProp( const std::string &propName, const LayoutableShadowNode *layoutableShadowNode); static std::string processStyleProp( const std::string &propName, const std::shared_ptr &viewProps, jsi::Runtime &rt); static std::string intColorToHex(const int val); static jsi::Object boxShadowPreprocessing( const BoxShadow &boxShadow, jsi::Runtime &rt); static bool isLayoutProp(const std::string &propName); static bool isStyleProp(const std::string &propName); }; } // namespace reanimated