#pragma once #include #include #include #include #include using namespace facebook; namespace reanimated { using UpdaterFunction = std::function; using RequestRender = std::function, jsi::Runtime &rt)>; using ScrollToFunction = std::function; using MeasuringFunction = std::function>(int)>; using TimeProviderFunction = std::function; using RegisterSensorFunction = std::function)>; using UnregisterSensorFunction = std::function; using SetGestureStateFunction = std::function; using ConfigurePropsFunction = std::function; using KeyboardEventSubscribeFunction = std::function)>; using KeyboardEventUnsubscribeFunction = std::function; struct PlatformDepMethodsHolder { RequestRender requestRender; UpdaterFunction updaterFunction; ScrollToFunction scrollToFunction; MeasuringFunction measuringFunction; TimeProviderFunction getCurrentTime; RegisterSensorFunction registerSensor; UnregisterSensorFunction unregisterSensor; SetGestureStateFunction setGestureStateFunction; ConfigurePropsFunction configurePropsFunction; KeyboardEventSubscribeFunction subscribeForKeyboardEvents; KeyboardEventUnsubscribeFunction unsubscribeFromKeyboardEvents; }; } // namespace reanimated