#pragma once #include #include #include #include using namespace facebook; namespace reanimated { class Mapper; class MapperRegistry { std::unordered_map> mappers; std::vector> sortedMappers; void updateOrder(); bool updatedSinceLastExecute = false; public: void startMapper(std::shared_ptr mapper); void stopMapper(unsigned long id); void execute(jsi::Runtime &rt); bool needRunOnRender(); }; } // namespace reanimated