#pragma once #include #include #include #include #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdocumentation" #include #pragma clang diagnostic pop namespace ABI47_0_0RNSkia { using namespace ABI47_0_0facebook; class JsiSkSVG : public JsiSkWrappingSkPtrHostObject { public: JsiSkSVG(std::shared_ptr context, sk_sp svgdom) : JsiSkWrappingSkPtrHostObject(std::move(context), std::move(svgdom)){} JSI_PROPERTY_GET(__typename__) { return jsi::String::createFromUtf8(runtime, "SVG"); } JSI_EXPORT_PROPERTY_GETTERS(JSI_EXPORT_PROP_GET(JsiSkSVG, __typename__)) /** Returns the underlying object from a host object of this type */ static sk_sp fromValue(jsi::Runtime &runtime, const jsi::Value &obj) { return obj.asObject(runtime) .asHostObject(runtime) ->getObject(); } }; } // namespace ABI47_0_0RNSkia