Files
Schnappix/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/configs/CSSKeyframesConfig.h
T

27 lines
776 B
C++

#pragma once
#include <reanimated/CSS/easing/EasingFunctions.h>
#include <reanimated/CSS/interpolation/styles/AnimationStyleInterpolator.h>
#include <reanimated/CSS/misc/ViewStylesRepository.h>
#include <memory>
#include <string>
#include <unordered_map>
namespace reanimated::css {
using KeyframeEasingFunctions = std::unordered_map<double, EasingFunction>;
struct CSSKeyframesConfig {
std::shared_ptr<AnimationStyleInterpolator> styleInterpolator;
std::shared_ptr<KeyframeEasingFunctions> keyframeEasingFunctions;
};
CSSKeyframesConfig parseCSSAnimationKeyframesConfig(
jsi::Runtime &rt,
const jsi::Value &config,
const std::string &componentName,
const std::shared_ptr<ViewStylesRepository> &viewStylesRepository);
} // namespace reanimated::css