@coinbase/cds-mobile 9.12.0 → 9.12.1

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.
package/CHANGELOG.md CHANGED
@@ -8,6 +8,12 @@ All notable changes to this project will be documented in this file.
8
8
 
9
9
  <!-- template-start -->
10
10
 
11
+ ## 9.12.1 (8/8/2026 PST)
12
+
13
+ #### 🐞 Fixes
14
+
15
+ - Fix: disable mount animation for DefaultTabsActiveIndicator. [[#834](https://github.com/coinbase/cds/pull/834)]
16
+
11
17
  ## 9.12.0 (8/7/2026 PST)
12
18
 
13
19
  #### 🚀 Updates
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultTabsActiveIndicator.d.ts","sourceRoot":"","sources":["../../src/tabs/DefaultTabsActiveIndicator.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,wBAAwB,EAAoB,MAAM,QAAQ,CAAC;AAOzE,eAAO,MAAM,0BAA0B,+FAOlC,wBAAwB,oDAmC5B,CAAC"}
1
+ {"version":3,"file":"DefaultTabsActiveIndicator.d.ts","sourceRoot":"","sources":["../../src/tabs/DefaultTabsActiveIndicator.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,wBAAwB,EAAoB,MAAM,QAAQ,CAAC;AAOzE,eAAO,MAAM,0BAA0B,+FAOlC,wBAAwB,oDA0C5B,CAAC"}
@@ -1,7 +1,7 @@
1
1
  const _excluded = ["activeTabRect", "background", "style", "testID"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
3
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
- import { memo, useEffect } from 'react';
4
+ import { memo, useEffect, useRef } from 'react';
5
5
  import Animated, { useAnimatedStyle, useSharedValue, withSpring } from 'react-native-reanimated';
6
6
  import { Box } from '../layout/Box';
7
7
  import { tabsSpringConfig } from './Tabs';
@@ -27,12 +27,21 @@ export const DefaultTabsActiveIndicator = /*#__PURE__*/memo(_ref => {
27
27
  width,
28
28
  x
29
29
  });
30
+ const isFirstRenderWithWidth = useRef(true);
30
31
  useEffect(() => {
31
32
  if (!width) return;
32
- rect.value = withSpring({
33
- x,
34
- width
35
- }, tabsSpringConfig);
33
+ if (isFirstRenderWithWidth.current) {
34
+ rect.value = {
35
+ x,
36
+ width
37
+ };
38
+ isFirstRenderWithWidth.current = false;
39
+ } else {
40
+ rect.value = withSpring({
41
+ x,
42
+ width
43
+ }, tabsSpringConfig);
44
+ }
36
45
  }, [rect, width, x]);
37
46
  const animatedBoxStyle = useAnimatedStyle(() => ({
38
47
  transform: [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase/cds-mobile",
3
- "version": "9.12.0",
3
+ "version": "9.12.1",
4
4
  "description": "Coinbase Design System - Mobile",
5
5
  "repository": {
6
6
  "type": "git",
@@ -218,9 +218,9 @@
218
218
  "react-native-worklets": "0.5.2"
219
219
  },
220
220
  "dependencies": {
221
- "@coinbase/cds-common": "^9.12.0",
221
+ "@coinbase/cds-common": "^9.12.1",
222
222
  "@coinbase/cds-icons": "^5.21.0",
223
- "@coinbase/cds-illustrations": "^4.46.0",
223
+ "@coinbase/cds-illustrations": "^4.47.0",
224
224
  "@coinbase/cds-lottie-files": "^3.3.4",
225
225
  "@coinbase/cds-utils": "^2.3.5",
226
226
  "@floating-ui/react-native": "^0.10.5",