Files
react-native-svg/common/cpp/react/renderer/components/rnsvg/RNSVGLayoutableShadowNode.h
Jakub Grzywacz 6042b89b6b feat: use yoga::StyleLength instead of yoga::value on 77+ (#2582)
# Summary

With react-native@0.77 `yoga::value` is no longer available and we
should use `yoga::StyleLength`.

## Test Plan

App should build again on 0.77.rc-3
2024-12-19 14:34:55 +01:00

23 lines
568 B
C++

#include <react/renderer/components/view/YogaLayoutableShadowNode.h>
namespace facebook::react {
class RNSVGLayoutableShadowNode : public YogaLayoutableShadowNode {
public:
RNSVGLayoutableShadowNode(
const ShadowNodeFragment &fragment,
const ShadowNodeFamily::Shared &family,
ShadowNodeTraits traits);
RNSVGLayoutableShadowNode(
const ShadowNode &sourceShadowNode,
const ShadowNodeFragment &fragment);
void layout(LayoutContext layoutContext) override;
private:
void setZeroDimensions();
};
} // namespace facebook::react