@octane-xplat/lottie 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 1,
3
- "buildId": "a8ee13bf-cf76-4937-9582-88372b98e845",
3
+ "buildId": "48e57728-7c81-49da-a9f7-d500ad0bb062",
4
4
  "mode": "production",
5
5
  "capabilities": {
6
6
  "independentHydration": false
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 1,
3
- "buildId": "c373e7d3-9edd-446d-a5fd-18159de301e7",
3
+ "buildId": "7b14a080-adc9-44ee-aa1a-3d6b87dcfec1",
4
4
  "mode": "production",
5
5
  "capabilities": {
6
6
  "independentHydration": false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octane-xplat/lottie",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "Lottie animation leaf for Octane xplat — lottie-web on web, NativeScript on mobile, and Airbnb Lottie on AppKit",
5
5
  "repository": {
6
6
  "type": "git",
package/src/Lottie.tsrx CHANGED
@@ -34,10 +34,11 @@ function currentProgress(v: LottieView): number {
34
34
 
35
35
  /** Stop = pause + reset playhead. iOS `stop()` resets to the start;
36
36
  * Android's `cancelAnimation()` ends the animator and the next
37
- * `playAnimation()` restarts from 0. */
37
+ * `playAnimation()` restarts from 0. `nativeViewProtected` is typed
38
+ * per-platform — `stop` only exists on iOS's CompatibleAnimationView. */
38
39
  function stopView(v: LottieView) {
39
40
  if (isAndroid) v.cancelAnimation();
40
- else v.nativeViewProtected?.stop();
41
+ else (v.nativeViewProtected as any)?.stop();
41
42
 
42
43
  v.progress = 0;
43
44
  }