#pragma once #include #include #include #include namespace reanimated { using namespace facebook::react; class ReanimatedMountHook : public UIManagerMountHook { public: ReanimatedMountHook( const std::shared_ptr &uiManager, const std::shared_ptr &updatesRegistryManager, const std::function &requestFlush); ~ReanimatedMountHook() noexcept override; void shadowTreeDidMount( RootShadowNode::Shared const &rootShadowNode, #if REACT_NATIVE_MINOR_VERSION >= 81 HighResTimeStamp /*unmountTime*/ #else double /*unmountTime*/ #endif // REACT_NATIVE_MINOR_VERSION >= 81 ) noexcept override; private: const std::shared_ptr uiManager_; const std::shared_ptr updatesRegistryManager_; const std::function requestFlush_; }; } // namespace reanimated