mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-05 22:56:11 +00:00
# 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
23 lines
568 B
C++
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
|