react-native-true-sheet/common/cpp/react/renderer/components/TrueSheetSpec/TrueSheetViewShadowNode.h
Jovanni Lo 248b64de25
feat: move Fabric state wrapper to host view (#230)
* feat: move state wrapper from container view to host view

* fix(ios): call updateStateIfNeeded on every state update

* fix(ios): handle device rotation and only track width changes

* feat(android): align state update flow with iOS

* chore: improve clean script with colors
2025-11-26 03:32:22 +08:00

29 lines
798 B
C++

#pragma once
#include <jsi/jsi.h>
#include <react/renderer/components/TrueSheetSpec/EventEmitters.h>
#include <react/renderer/components/TrueSheetSpec/Props.h>
#include <react/renderer/components/TrueSheetSpec/TrueSheetViewState.h>
#include <react/renderer/components/view/ConcreteViewShadowNode.h>
namespace facebook::react {
JSI_EXPORT extern const char TrueSheetViewComponentName[];
/*
* `ShadowNode` for <TrueSheetView> component.
*/
class JSI_EXPORT TrueSheetViewShadowNode final
: public ConcreteViewShadowNode<
TrueSheetViewComponentName,
TrueSheetViewProps,
TrueSheetViewEventEmitter,
TrueSheetViewState> {
using ConcreteViewShadowNode::ConcreteViewShadowNode;
public:
void adjustLayoutWithState();
};
} // namespace facebook::react