Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

#include <string_view>

namespace facebook::react {

static constexpr std::string_view ExtrapolateTypeIdentity = "identity";
static constexpr std::string_view ExtrapolateTypeClamp = "clamp";
static constexpr std::string_view ExtrapolateTypeExtend = "extend";
Expand All @@ -21,16 +23,14 @@ static constexpr double SingleFrameIntervalMs = 1000.0 / 60.0;

static constexpr double TicksPerMs = 10000.0; // ticks are 100 nanoseconds

namespace {

inline double interpolate(
double inputValue,
double inputMin,
double inputMax,
double outputMin,
double outputMax,
const std::string_view& extrapolateLeft,
const std::string_view& extrapolateRight) {
std::string_view extrapolateLeft,
std::string_view extrapolateRight) {
auto result = inputValue;

// Extrapolate
Expand Down Expand Up @@ -61,4 +61,4 @@ inline double interpolate(
(outputMax - outputMin) * (result - inputMin) / (inputMax - inputMin);
}

} // namespace
} // namespace facebook::react
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

#include "AnimationTestsBase.h"

#include <react/renderer/animated/drivers/AnimationDriverUtils.h>
#include <react/renderer/core/ReactRootViewTagGenerator.h>

namespace facebook::react {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

#include "AnimationTestsBase.h"

#include <react/renderer/animated/drivers/AnimationDriverUtils.h>
#include <react/renderer/components/scrollview/ScrollEvent.h>
#include <react/renderer/core/ReactRootViewTagGenerator.h>

Expand Down
Loading