@coinbase/cds-mobile 8.48.1 → 8.48.3
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,16 @@ All notable changes to this project will be documented in this file.
|
|
|
8
8
|
|
|
9
9
|
<!-- template-start -->
|
|
10
10
|
|
|
11
|
+
## 8.48.3 ((2/25/2026, 08:36 PM PST))
|
|
12
|
+
|
|
13
|
+
This is an artificial version bump with no new change.
|
|
14
|
+
|
|
15
|
+
## 8.48.2 (2/25/2026 PST)
|
|
16
|
+
|
|
17
|
+
#### 🐞 Fixes
|
|
18
|
+
|
|
19
|
+
- Deprecate useStatusBarHeight hook.
|
|
20
|
+
|
|
11
21
|
## 8.48.1 ((2/25/2026, 01:30 PM PST))
|
|
12
22
|
|
|
13
23
|
This is an artificial version bump with no new change.
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* This
|
|
2
|
+
* @deprecated Use `useSafeAreaInsets().top` from `react-native-safe-area-context` instead.
|
|
3
|
+
* This approach is recommended by Expo and provides more reliable values across platforms.
|
|
4
|
+
* @see https://docs.expo.dev/versions/latest/sdk/safe-area-context/
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* // Before (deprecated)
|
|
8
|
+
* const statusBarHeight = useStatusBarHeight();
|
|
9
|
+
*
|
|
10
|
+
* // After (recommended)
|
|
11
|
+
* import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
12
|
+
* const insets = useSafeAreaInsets();
|
|
13
|
+
* const statusBarHeight = insets.top;
|
|
4
14
|
*/
|
|
5
15
|
export declare const useStatusBarHeight: () => number | undefined;
|
|
6
16
|
//# sourceMappingURL=useStatusBarHeight.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStatusBarHeight.d.ts","sourceRoot":"","sources":["../../src/hooks/useStatusBarHeight.ts"],"names":[],"mappings":"AAUA
|
|
1
|
+
{"version":3,"file":"useStatusBarHeight.d.ts","sourceRoot":"","sources":["../../src/hooks/useStatusBarHeight.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,0BAwB9B,CAAC"}
|
|
@@ -4,8 +4,18 @@ const {
|
|
|
4
4
|
StatusBarManager
|
|
5
5
|
} = NativeModules;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
* This
|
|
7
|
+
* @deprecated Use `useSafeAreaInsets().top` from `react-native-safe-area-context` instead.
|
|
8
|
+
* This approach is recommended by Expo and provides more reliable values across platforms.
|
|
9
|
+
* @see https://docs.expo.dev/versions/latest/sdk/safe-area-context/
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* // Before (deprecated)
|
|
13
|
+
* const statusBarHeight = useStatusBarHeight();
|
|
14
|
+
*
|
|
15
|
+
* // After (recommended)
|
|
16
|
+
* import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
17
|
+
* const insets = useSafeAreaInsets();
|
|
18
|
+
* const statusBarHeight = insets.top;
|
|
9
19
|
*/
|
|
10
20
|
export const useStatusBarHeight = () => {
|
|
11
21
|
const [statusBarHeight, setStatusBarHeight] = useState();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coinbase/cds-mobile",
|
|
3
|
-
"version": "8.48.
|
|
3
|
+
"version": "8.48.3",
|
|
4
4
|
"description": "Coinbase Design System - Mobile",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
"react-native-svg": "^14.1.0"
|
|
199
199
|
},
|
|
200
200
|
"dependencies": {
|
|
201
|
-
"@coinbase/cds-common": "^8.48.
|
|
201
|
+
"@coinbase/cds-common": "^8.48.3",
|
|
202
202
|
"@coinbase/cds-icons": "^5.11.0",
|
|
203
203
|
"@coinbase/cds-illustrations": "^4.31.0",
|
|
204
204
|
"@coinbase/cds-lottie-files": "^3.3.4",
|