Skip to content

Use native SpringAnimation implementation for each platform #7082

@swabbass

Description

@swabbass

🚀 Feature

See issue : #7044

Have you read the Contributing Guidelines on issues?

yes

Motivation

Today SpringInterpolator is based on third party calculations for spring force, which did not work, has "jumps" in animations for different spring configuration.

Pitch

Use the native SpringAnimation implementation for each platform and write a unique SpringInterpolator that has the platform native SpringAnimation implementation in the implementation.

The platform might include such an interpolator, no need to write one,

  • Change the JS API to support platform terminology on the native side (options-parser).
  • On the native side, we might use one SpringInterpolator in order to achieve other interpolators through the config, like linear, overshoot, accelerate, etc.
  • Preset like configurations.
  • Less code.
  • Support a wide range of interpolations easily via a simple config of the animation.

@guyca wdyt?

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions