@expo/ui 0.2.0-beta.3 → 0.2.0-beta.4
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 +11 -0
- package/android/build.gradle +2 -2
- package/build/swift-ui/Button/index.d.ts +6 -5
- package/build/swift-ui/Button/index.d.ts.map +1 -1
- package/build/swift-ui/ContentUnavailableView/index.d.ts +2 -1
- package/build/swift-ui/ContentUnavailableView/index.d.ts.map +1 -1
- package/build/swift-ui/Image/index.d.ts +2 -1
- package/build/swift-ui/Image/index.d.ts.map +1 -1
- package/build/swift-ui/Label/index.d.ts +2 -1
- package/build/swift-ui/Label/index.d.ts.map +1 -1
- package/build/swift-ui/modifiers/index.d.ts +6 -2
- package/build/swift-ui/modifiers/index.d.ts.map +1 -1
- package/expo-module.config.json +1 -1
- package/ios/Modifiers/ViewModifierRegistry.swift +21 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{0.2.0-beta.3/expo.modules.ui-0.2.0-beta.3.aar → 0.2.0-beta.4/expo.modules.ui-0.2.0-beta.4.aar} +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.4/expo.modules.ui-0.2.0-beta.4.aar.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.4/expo.modules.ui-0.2.0-beta.4.aar.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.4/expo.modules.ui-0.2.0-beta.4.aar.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.4/expo.modules.ui-0.2.0-beta.4.aar.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{0.2.0-beta.3/expo.modules.ui-0.2.0-beta.3.module → 0.2.0-beta.4/expo.modules.ui-0.2.0-beta.4.module} +17 -17
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.4/expo.modules.ui-0.2.0-beta.4.module.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.4/expo.modules.ui-0.2.0-beta.4.module.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.4/expo.modules.ui-0.2.0-beta.4.module.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.4/expo.modules.ui-0.2.0-beta.4.module.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{0.2.0-beta.3/expo.modules.ui-0.2.0-beta.3.pom → 0.2.0-beta.4/expo.modules.ui-0.2.0-beta.4.pom} +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.4/expo.modules.ui-0.2.0-beta.4.pom.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.4/expo.modules.ui-0.2.0-beta.4.pom.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.4/expo.modules.ui-0.2.0-beta.4.pom.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.4/expo.modules.ui-0.2.0-beta.4.pom.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml +4 -4
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.md5 +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha1 +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha256 +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha512 +1 -1
- package/package.json +5 -3
- package/src/swift-ui/Button/index.tsx +6 -5
- package/src/swift-ui/ContentUnavailableView/index.tsx +2 -1
- package/src/swift-ui/Image/index.tsx +2 -1
- package/src/swift-ui/Label/index.tsx +2 -1
- package/src/swift-ui/modifiers/index.ts +4 -2
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.3/expo.modules.ui-0.2.0-beta.3.aar.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.3/expo.modules.ui-0.2.0-beta.3.aar.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.3/expo.modules.ui-0.2.0-beta.3.aar.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.3/expo.modules.ui-0.2.0-beta.3.aar.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.3/expo.modules.ui-0.2.0-beta.3.module.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.3/expo.modules.ui-0.2.0-beta.3.module.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.3/expo.modules.ui-0.2.0-beta.3.module.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.3/expo.modules.ui-0.2.0-beta.3.module.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.3/expo.modules.ui-0.2.0-beta.3.pom.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.3/expo.modules.ui-0.2.0-beta.3.pom.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.3/expo.modules.ui-0.2.0-beta.3.pom.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/0.2.0-beta.3/expo.modules.ui-0.2.0-beta.3.pom.sha512 +0 -1
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{0.2.0-beta.3/expo.modules.ui-0.2.0-beta.3-sources.jar → 0.2.0-beta.4/expo.modules.ui-0.2.0-beta.4-sources.jar} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{0.2.0-beta.3/expo.modules.ui-0.2.0-beta.3-sources.jar.md5 → 0.2.0-beta.4/expo.modules.ui-0.2.0-beta.4-sources.jar.md5} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{0.2.0-beta.3/expo.modules.ui-0.2.0-beta.3-sources.jar.sha1 → 0.2.0-beta.4/expo.modules.ui-0.2.0-beta.4-sources.jar.sha1} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{0.2.0-beta.3/expo.modules.ui-0.2.0-beta.3-sources.jar.sha256 → 0.2.0-beta.4/expo.modules.ui-0.2.0-beta.4-sources.jar.sha256} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{0.2.0-beta.3/expo.modules.ui-0.2.0-beta.3-sources.jar.sha512 → 0.2.0-beta.4/expo.modules.ui-0.2.0-beta.4-sources.jar.sha512} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -10,11 +10,22 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 0.2.0-beta.4 — 2025-09-22
|
|
14
|
+
|
|
15
|
+
### 🎉 New features
|
|
16
|
+
|
|
17
|
+
- Add SF symbol typings ([#39802](https://github.com/expo/expo/pull/39802) by [@nishan](https://github.com/intergalacticspacehighway))
|
|
18
|
+
|
|
19
|
+
### 🐛 Bug fixes
|
|
20
|
+
|
|
21
|
+
- [iOS] Updated description for glass button styles availability ([#39736](https://github.com/expo/expo/pull/39736) by [@terijaki](https://github.com/terijaki))
|
|
22
|
+
|
|
13
23
|
## 0.2.0-beta.3 — 2025-09-16
|
|
14
24
|
|
|
15
25
|
### 🎉 New features
|
|
16
26
|
|
|
17
27
|
- [iOS] Add `LabeledContent` view ([#39463](https://github.com/expo/expo/pull/39617) by [@betomoedano](https://github.com/betomoedano))
|
|
28
|
+
- [iOS] Add `fixedSize` modifier. ([#39734](https://github.com/expo/expo/pull/39734) by [@nishan](https://github.com/intergalacticspacehighway))
|
|
18
29
|
|
|
19
30
|
### 🐛 Bug fixes
|
|
20
31
|
|
package/android/build.gradle
CHANGED
|
@@ -12,13 +12,13 @@ apply plugin: 'expo-module-gradle-plugin'
|
|
|
12
12
|
apply plugin: 'org.jetbrains.kotlin.plugin.compose'
|
|
13
13
|
|
|
14
14
|
group = 'expo.modules.ui'
|
|
15
|
-
version = '0.2.0-beta.
|
|
15
|
+
version = '0.2.0-beta.4'
|
|
16
16
|
|
|
17
17
|
android {
|
|
18
18
|
namespace "expo.modules.ui"
|
|
19
19
|
defaultConfig {
|
|
20
20
|
versionCode 1
|
|
21
|
-
versionName "0.2.0-beta.
|
|
21
|
+
versionName "0.2.0-beta.4"
|
|
22
22
|
}
|
|
23
23
|
buildFeatures {
|
|
24
24
|
compose true
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type SFSymbol } from 'sf-symbols-typescript';
|
|
1
2
|
import { type ViewEvent } from '../../types';
|
|
2
3
|
import { type CommonViewModifierProps } from '../types';
|
|
3
4
|
/**
|
|
@@ -16,9 +17,9 @@ export type ButtonRole = 'default' | 'cancel' | 'destructive';
|
|
|
16
17
|
* - `borderless` - A button with no background or border. On Android, equivalent to `TextButton`.
|
|
17
18
|
* - `borderedProminent` - A bordered button with a prominent appearance.
|
|
18
19
|
* - `plain` - A button with no border or background and a less prominent text.
|
|
20
|
+
* - `glass` – A liquid glass button effect – (available only from iOS 26, when built with Xcode 26)
|
|
21
|
+
* - `glassProminent` – A liquid glass button effect – (available only from iOS 26, when built with Xcode 26)
|
|
19
22
|
* macOS-only styles:
|
|
20
|
-
* - `glass` – A liquid glass button effect – (available only since iOS 26, for now only when built with beta version of Xcode)
|
|
21
|
-
* - `glassProminent` – A liquid glass button effect – (available only since iOS 26, for now only when built with beta 3 version of Xcode)
|
|
22
23
|
* - `accessoryBar` - A button style for accessory bars.
|
|
23
24
|
* - `accessoryBarAction` - A button style for accessory bar actions.
|
|
24
25
|
* - `card` - A button style for cards.
|
|
@@ -33,9 +34,9 @@ export type ButtonProps = {
|
|
|
33
34
|
/**
|
|
34
35
|
* A string describing the system image to display in the button.
|
|
35
36
|
* This is only used if `children` is a string.
|
|
36
|
-
* Uses
|
|
37
|
+
* Uses SF Symbols.
|
|
37
38
|
*/
|
|
38
|
-
systemImage?:
|
|
39
|
+
systemImage?: SFSymbol;
|
|
39
40
|
/**
|
|
40
41
|
* Indicated the role of the button.
|
|
41
42
|
* @platform ios
|
|
@@ -65,7 +66,7 @@ export type ButtonProps = {
|
|
|
65
66
|
export type NativeButtonProps = Omit<ButtonProps, 'role' | 'onPress' | 'children' | 'systemImage'> & {
|
|
66
67
|
buttonRole?: ButtonRole;
|
|
67
68
|
text: string | undefined;
|
|
68
|
-
systemImage?:
|
|
69
|
+
systemImage?: SFSymbol;
|
|
69
70
|
} & ViewEvent<'onButtonPressed', void>;
|
|
70
71
|
/**
|
|
71
72
|
* exposed for ContextMenu
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Button/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Button/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,aAAa,CAAC;AAE9D;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,aAAa,GAErB,SAAS,GACT,UAAU,GACV,OAAO,GACP,OAAO,GACP,gBAAgB,GAChB,mBAAmB,GACnB,YAAY,GAEZ,cAAc,GACd,oBAAoB,GACpB,MAAM,GACN,MAAM,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACpC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,uBAAuB,CAAC;AAE5B;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAClC,WAAW,EACX,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,aAAa,CAChD,GAAG;IACF,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,WAAW,CAAC,EAAE,QAAQ,CAAC;CACxB,GAAG,SAAS,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC;AAQvC;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,EACpC,IAAI,EAAE,MAAM,GAAG,SAAS,GACvB,iBAAiB,CAWnB;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,+BAkBxC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type SFSymbol } from 'sf-symbols-typescript';
|
|
1
2
|
import { type CommonViewModifierProps } from '../types';
|
|
2
3
|
export interface ContentUnavailableViewProps extends CommonViewModifierProps {
|
|
3
4
|
/**
|
|
@@ -7,7 +8,7 @@ export interface ContentUnavailableViewProps extends CommonViewModifierProps {
|
|
|
7
8
|
/**
|
|
8
9
|
* SF Symbol indicating why the content is not available.
|
|
9
10
|
*/
|
|
10
|
-
systemImage?:
|
|
11
|
+
systemImage?: SFSymbol;
|
|
11
12
|
/**
|
|
12
13
|
* Description of why the content is not available.
|
|
13
14
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/ContentUnavailableView/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/ContentUnavailableView/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGtD,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,WAAW,2BAA4B,SAAQ,uBAAuB;IAC1E;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC;IAEvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAoBD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,+BAExE"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { type SFSymbol } from 'sf-symbols-typescript';
|
|
1
2
|
import { type CommonViewModifierProps } from '../types';
|
|
2
3
|
export interface ImageProps extends CommonViewModifierProps {
|
|
3
4
|
/**
|
|
4
5
|
* The name of the system image (SF Symbol).
|
|
5
6
|
* For example: 'photo', 'heart.fill', 'star.circle'
|
|
6
7
|
*/
|
|
7
|
-
systemName:
|
|
8
|
+
systemName: SFSymbol;
|
|
8
9
|
/**
|
|
9
10
|
* The size of the system image.
|
|
10
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Image/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Image/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAItD,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,WAAW,UAAW,SAAQ,uBAAuB;IACzD;;;OAGG;IACH,UAAU,EAAE,QAAQ,CAAC;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAuBD,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,+BAEtC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type SFSymbol } from 'sf-symbols-typescript';
|
|
1
2
|
import { type CommonViewModifierProps } from '../types';
|
|
2
3
|
export type LabelProps = {
|
|
3
4
|
/**
|
|
@@ -7,7 +8,7 @@ export type LabelProps = {
|
|
|
7
8
|
/**
|
|
8
9
|
* The name of the SFSymbol to be displayed in the label.
|
|
9
10
|
*/
|
|
10
|
-
systemImage?:
|
|
11
|
+
systemImage?: SFSymbol;
|
|
11
12
|
/**
|
|
12
13
|
* The color of the label icon.
|
|
13
14
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Label/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Label/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGtD,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,uBAAuB,CAAC;AAI5B;;;;;;GAMG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,+BAStC"}
|
|
@@ -59,9 +59,13 @@ export declare const padding: (params: {
|
|
|
59
59
|
}) => ModifierConfig;
|
|
60
60
|
/**
|
|
61
61
|
* Controls fixed size behavior.
|
|
62
|
-
* @param
|
|
62
|
+
* @param horizontal - Whether the view should use its ideal width
|
|
63
|
+
* @param vertical - Whether the view should use its ideal height
|
|
63
64
|
*/
|
|
64
|
-
export declare const fixedSize: (
|
|
65
|
+
export declare const fixedSize: (params?: {
|
|
66
|
+
horizontal?: boolean;
|
|
67
|
+
vertical?: boolean;
|
|
68
|
+
}) => ModifierConfig;
|
|
65
69
|
/**
|
|
66
70
|
* Adds a tap gesture recognizer.
|
|
67
71
|
* @param handler - Function to call when tapped
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/modifiers/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAalE,KAAK,UAAU,GACX,SAAS,GACT,WAAW,GACX,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,MAAM,GACN,QAAQ,GACR,MAAM,GACN,OAAO,GACP,MAAM,GACN,OAAO,GACP,OAAO,GACP,MAAM,GACN,MAAM,GACN,MAAM,GACN,QAAQ,GACR,OAAO,CAAC;AAEZ,KAAK,KAAK,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,CAAC;AAM9C;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,KAAK,mBAA4C,CAAC;AAEpF;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,QAAQ,MAAM,mBAA+C,CAAC;AAE3F;;GAEG;AACH,eAAO,MA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O,MAAM,UAAU,GAAI,OAAO,GAAG,KAAG,KAAK,IAAI,cAEhD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,WAAW,OAAO,EAAE,KAAG,cAAc,EAEpE,CAAC;AAEF,cAAc,mBAAmB,CAAC"}
|
package/expo-module.config.json
CHANGED
|
@@ -488,6 +488,23 @@ internal struct BackgroundOverlayModifier: ViewModifier, Record {
|
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
490
|
|
|
491
|
+
internal struct FixedSizeModifier: ViewModifier, Record {
|
|
492
|
+
@Field var horizontal: Bool?
|
|
493
|
+
@Field var vertical: Bool?
|
|
494
|
+
|
|
495
|
+
func body(content: Content) -> some View {
|
|
496
|
+
if let horizontal, let vertical {
|
|
497
|
+
content.fixedSize(horizontal: horizontal, vertical: vertical)
|
|
498
|
+
} else if let horizontal {
|
|
499
|
+
content.fixedSize(horizontal: horizontal, vertical: false)
|
|
500
|
+
} else if let vertical {
|
|
501
|
+
content.fixedSize(horizontal: false, vertical: vertical)
|
|
502
|
+
} else {
|
|
503
|
+
content.fixedSize()
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
|
|
491
508
|
/**
|
|
492
509
|
* A type-erased wrapper for `ViewModifier`
|
|
493
510
|
*/
|
|
@@ -932,5 +949,9 @@ extension ViewModifierRegistry {
|
|
|
932
949
|
register("matchedGeometryEffect") { params, appContext, _ in
|
|
933
950
|
return try MatchedGeometryEffectModifier.init(from: params, appContext: appContext)
|
|
934
951
|
}
|
|
952
|
+
|
|
953
|
+
register("fixedSize") { params, appContext, _ in
|
|
954
|
+
return try FixedSizeModifier(from: params, appContext: appContext)
|
|
955
|
+
}
|
|
935
956
|
}
|
|
936
957
|
}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1410ec08df204198790aa9f18de00279
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
75af4602729dd306ec54593ac1d53711fc4dd1e9
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
d25dd55e7dc6b5f815e768d9fcfd84d43bce8dda10252e3e5a5c22111a1fe5c3
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
5cba128046c5727e4b9f4c9d474e113da5c7dae810ac34fa85af8e5f37e6d2267d464d9a60a407235c103b6c16c5be1db5a1229a0639facd36cccb2914c98be1
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"component": {
|
|
4
4
|
"group": "expo.modules.ui",
|
|
5
5
|
"module": "expo.modules.ui",
|
|
6
|
-
"version": "0.2.0-beta.
|
|
6
|
+
"version": "0.2.0-beta.4",
|
|
7
7
|
"attributes": {
|
|
8
8
|
"org.gradle.status": "release"
|
|
9
9
|
}
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
{
|
|
27
|
-
"name": "expo.modules.ui-0.2.0-beta.
|
|
28
|
-
"url": "expo.modules.ui-0.2.0-beta.
|
|
29
|
-
"size":
|
|
30
|
-
"sha512": "
|
|
31
|
-
"sha256": "
|
|
32
|
-
"sha1": "
|
|
33
|
-
"md5": "
|
|
27
|
+
"name": "expo.modules.ui-0.2.0-beta.4.aar",
|
|
28
|
+
"url": "expo.modules.ui-0.2.0-beta.4.aar",
|
|
29
|
+
"size": 328002,
|
|
30
|
+
"sha512": "5cba128046c5727e4b9f4c9d474e113da5c7dae810ac34fa85af8e5f37e6d2267d464d9a60a407235c103b6c16c5be1db5a1229a0639facd36cccb2914c98be1",
|
|
31
|
+
"sha256": "d25dd55e7dc6b5f815e768d9fcfd84d43bce8dda10252e3e5a5c22111a1fe5c3",
|
|
32
|
+
"sha1": "75af4602729dd306ec54593ac1d53711fc4dd1e9",
|
|
33
|
+
"md5": "1410ec08df204198790aa9f18de00279"
|
|
34
34
|
}
|
|
35
35
|
]
|
|
36
36
|
},
|
|
@@ -102,13 +102,13 @@
|
|
|
102
102
|
],
|
|
103
103
|
"files": [
|
|
104
104
|
{
|
|
105
|
-
"name": "expo.modules.ui-0.2.0-beta.
|
|
106
|
-
"url": "expo.modules.ui-0.2.0-beta.
|
|
107
|
-
"size":
|
|
108
|
-
"sha512": "
|
|
109
|
-
"sha256": "
|
|
110
|
-
"sha1": "
|
|
111
|
-
"md5": "
|
|
105
|
+
"name": "expo.modules.ui-0.2.0-beta.4.aar",
|
|
106
|
+
"url": "expo.modules.ui-0.2.0-beta.4.aar",
|
|
107
|
+
"size": 328002,
|
|
108
|
+
"sha512": "5cba128046c5727e4b9f4c9d474e113da5c7dae810ac34fa85af8e5f37e6d2267d464d9a60a407235c103b6c16c5be1db5a1229a0639facd36cccb2914c98be1",
|
|
109
|
+
"sha256": "d25dd55e7dc6b5f815e768d9fcfd84d43bce8dda10252e3e5a5c22111a1fe5c3",
|
|
110
|
+
"sha1": "75af4602729dd306ec54593ac1d53711fc4dd1e9",
|
|
111
|
+
"md5": "1410ec08df204198790aa9f18de00279"
|
|
112
112
|
}
|
|
113
113
|
]
|
|
114
114
|
},
|
|
@@ -122,8 +122,8 @@
|
|
|
122
122
|
},
|
|
123
123
|
"files": [
|
|
124
124
|
{
|
|
125
|
-
"name": "expo.modules.ui-0.2.0-beta.
|
|
126
|
-
"url": "expo.modules.ui-0.2.0-beta.
|
|
125
|
+
"name": "expo.modules.ui-0.2.0-beta.4-sources.jar",
|
|
126
|
+
"url": "expo.modules.ui-0.2.0-beta.4-sources.jar",
|
|
127
127
|
"size": 20539,
|
|
128
128
|
"sha512": "744a477ab9a27f351ecdf6fbd8bd23f228f862a9872ddc6686f7fb9f6d9eabd023efd87529ccb8e840585bd7318107614dcbb480d1c514c25d39a0323821b7ca",
|
|
129
129
|
"sha256": "5a7003c3bb4ab5e12e1ab0d8b4636b32adb0e10076efcacb3d888dcfa6a50f7c",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2225d80781b4190b48a877c03fed00a2
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3df1c93eb5199b63dde963c3c0a00990081a872f
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
fb6cb313dd6b181c4578b553b7a9581043a1757c19d74bda7bf77dfcf3120a18
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
64ffe85aa50346d490d9e3541b6de47e61db6a1997c461aec40a5e090fdab7bfbd8ec70569abd5a481e9460a4cc567fd15f8a1d49c1050006f92d41104c52f6c
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<modelVersion>4.0.0</modelVersion>
|
|
10
10
|
<groupId>expo.modules.ui</groupId>
|
|
11
11
|
<artifactId>expo.modules.ui</artifactId>
|
|
12
|
-
<version>0.2.0-beta.
|
|
12
|
+
<version>0.2.0-beta.4</version>
|
|
13
13
|
<packaging>aar</packaging>
|
|
14
14
|
<name>expo.modules.ui</name>
|
|
15
15
|
<url>https://github.com/expo/expo</url>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
8097558d177e3399499e1204bf42f5e9
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
84e4a98000d5a59cbe3bef926af91831b190b562
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3652173bc50eb3e478ebcac84b0314eabf0711502ab39cc28c3c7891c1c0745f
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3c76296de2cc67e581f28747a99e44f2863c23023cf536f7dbf38630ad7586bd858cd2e61d6655bca165edd7954e024bbe451c61b9eb31fcb7ed00210ebb8369
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<groupId>expo.modules.ui</groupId>
|
|
4
4
|
<artifactId>expo.modules.ui</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<latest>0.2.0-beta.
|
|
7
|
-
<release>0.2.0-beta.
|
|
6
|
+
<latest>0.2.0-beta.4</latest>
|
|
7
|
+
<release>0.2.0-beta.4</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>0.2.0-beta.
|
|
9
|
+
<version>0.2.0-beta.4</version>
|
|
10
10
|
</versions>
|
|
11
|
-
<lastUpdated>
|
|
11
|
+
<lastUpdated>20250922222657</lastUpdated>
|
|
12
12
|
</versioning>
|
|
13
13
|
</metadata>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
a2968a71a12761953bb85a72c326adbb
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
d2b0b0b5ab8609c871be8fd6786e523ebe09d94e
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
eabafe3dc7c5dc2a650450a6f7d3d9f47d02d38f0b71560f298c281e836fdb32
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
529f435014b6914ba88afb8c4d94fbfb09320544803d331b4b229049f84dfc0edadf055c08769ec9c988e36adb8d14d9f2e0b56b49fc95f648abf16d9963a841
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/ui",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.4",
|
|
4
4
|
"description": "A collection of UI components",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"exports": {
|
|
@@ -46,7 +46,9 @@
|
|
|
46
46
|
],
|
|
47
47
|
"author": "650 Industries, Inc.",
|
|
48
48
|
"license": "MIT",
|
|
49
|
-
"dependencies": {
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"sf-symbols-typescript": "^2.1.0"
|
|
51
|
+
},
|
|
50
52
|
"devDependencies": {
|
|
51
53
|
"@types/react": "~19.1.10",
|
|
52
54
|
"expo-module-scripts": "^5.0.7"
|
|
@@ -56,5 +58,5 @@
|
|
|
56
58
|
"react": "*",
|
|
57
59
|
"react-native": "*"
|
|
58
60
|
},
|
|
59
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "6523053d0d997d2a21f580d2752b2f873c122038"
|
|
60
62
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { requireNativeView } from 'expo';
|
|
2
|
+
import { type SFSymbol } from 'sf-symbols-typescript';
|
|
2
3
|
|
|
3
4
|
import { type ViewEvent } from '../../types';
|
|
4
5
|
import { createViewModifierEventListener } from '../modifiers/utils';
|
|
@@ -21,9 +22,9 @@ export type ButtonRole = 'default' | 'cancel' | 'destructive';
|
|
|
21
22
|
* - `borderless` - A button with no background or border. On Android, equivalent to `TextButton`.
|
|
22
23
|
* - `borderedProminent` - A bordered button with a prominent appearance.
|
|
23
24
|
* - `plain` - A button with no border or background and a less prominent text.
|
|
25
|
+
* - `glass` – A liquid glass button effect – (available only from iOS 26, when built with Xcode 26)
|
|
26
|
+
* - `glassProminent` – A liquid glass button effect – (available only from iOS 26, when built with Xcode 26)
|
|
24
27
|
* macOS-only styles:
|
|
25
|
-
* - `glass` – A liquid glass button effect – (available only since iOS 26, for now only when built with beta version of Xcode)
|
|
26
|
-
* - `glassProminent` – A liquid glass button effect – (available only since iOS 26, for now only when built with beta 3 version of Xcode)
|
|
27
28
|
* - `accessoryBar` - A button style for accessory bars.
|
|
28
29
|
* - `accessoryBarAction` - A button style for accessory bar actions.
|
|
29
30
|
* - `card` - A button style for cards.
|
|
@@ -52,9 +53,9 @@ export type ButtonProps = {
|
|
|
52
53
|
/**
|
|
53
54
|
* A string describing the system image to display in the button.
|
|
54
55
|
* This is only used if `children` is a string.
|
|
55
|
-
* Uses
|
|
56
|
+
* Uses SF Symbols.
|
|
56
57
|
*/
|
|
57
|
-
systemImage?:
|
|
58
|
+
systemImage?: SFSymbol;
|
|
58
59
|
/**
|
|
59
60
|
* Indicated the role of the button.
|
|
60
61
|
* @platform ios
|
|
@@ -88,7 +89,7 @@ export type NativeButtonProps = Omit<
|
|
|
88
89
|
> & {
|
|
89
90
|
buttonRole?: ButtonRole;
|
|
90
91
|
text: string | undefined;
|
|
91
|
-
systemImage?:
|
|
92
|
+
systemImage?: SFSymbol;
|
|
92
93
|
} & ViewEvent<'onButtonPressed', void>;
|
|
93
94
|
|
|
94
95
|
// We have to work around the `role` and `onPress` props being reserved by React Native.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { requireNativeView } from 'expo';
|
|
2
|
+
import { type SFSymbol } from 'sf-symbols-typescript';
|
|
2
3
|
|
|
3
4
|
import { createViewModifierEventListener } from '../modifiers/utils';
|
|
4
5
|
import { type CommonViewModifierProps } from '../types';
|
|
@@ -12,7 +13,7 @@ export interface ContentUnavailableViewProps extends CommonViewModifierProps {
|
|
|
12
13
|
/**
|
|
13
14
|
* SF Symbol indicating why the content is not available.
|
|
14
15
|
*/
|
|
15
|
-
systemImage?:
|
|
16
|
+
systemImage?: SFSymbol;
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
* Description of why the content is not available.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { requireNativeView } from 'expo';
|
|
2
|
+
import { type SFSymbol } from 'sf-symbols-typescript';
|
|
2
3
|
|
|
3
4
|
import { type ViewEvent } from '../../types';
|
|
4
5
|
import { createViewModifierEventListener } from '../modifiers/utils';
|
|
@@ -9,7 +10,7 @@ export interface ImageProps extends CommonViewModifierProps {
|
|
|
9
10
|
* The name of the system image (SF Symbol).
|
|
10
11
|
* For example: 'photo', 'heart.fill', 'star.circle'
|
|
11
12
|
*/
|
|
12
|
-
systemName:
|
|
13
|
+
systemName: SFSymbol;
|
|
13
14
|
/**
|
|
14
15
|
* The size of the system image.
|
|
15
16
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { requireNativeView } from 'expo';
|
|
2
|
+
import { type SFSymbol } from 'sf-symbols-typescript';
|
|
2
3
|
|
|
3
4
|
import { createViewModifierEventListener } from '../modifiers/utils';
|
|
4
5
|
import { type CommonViewModifierProps } from '../types';
|
|
@@ -12,7 +13,7 @@ export type LabelProps = {
|
|
|
12
13
|
/**
|
|
13
14
|
* The name of the SFSymbol to be displayed in the label.
|
|
14
15
|
*/
|
|
15
|
-
systemImage?:
|
|
16
|
+
systemImage?: SFSymbol;
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
* The color of the label icon.
|
|
@@ -109,9 +109,11 @@ export const padding = (params: {
|
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
111
|
* Controls fixed size behavior.
|
|
112
|
-
* @param
|
|
112
|
+
* @param horizontal - Whether the view should use its ideal width
|
|
113
|
+
* @param vertical - Whether the view should use its ideal height
|
|
113
114
|
*/
|
|
114
|
-
export const fixedSize = (
|
|
115
|
+
export const fixedSize = (params?: { horizontal?: boolean; vertical?: boolean }) =>
|
|
116
|
+
createModifier('fixedSize', params);
|
|
115
117
|
|
|
116
118
|
/**
|
|
117
119
|
* Adds a tap gesture recognizer.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
b114213555a449ebd989621a6004d7c4
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
391652a853a9044af4e700734c688833baeafa16
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
c24c39ff67c2dc961cfbf42f7a49e9c386d89a72d92a3f7071a20bea43d6fb3f
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
8f9c2a604403327edcec234ede7183d7d241371fcf4c6e1939964130b3a10a13942a069c552120e2a8e1c8ae5a8b20e29aee6ea5de22be089f9744982cbefe53
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
8b71186d23613e43e86d2c3750be1653
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
a40232153e8011b914e8fcfefb046c058ecb6fbc
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
5eecce8fc16f17d8908670cd3a91f212f0642abefe06c2ea8212cdee14062e39
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1f5d9fa5495cff8ab72e2db296881947ff5bd30d582fa2f7f8ce2d27f6163c7de6ec67182f6e9993ac23e4d897256ff217bad68b97629ce016fbf8d6fbf11038
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
65bda29bde8a1ee5207cd0d4cf57913d
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
d0775784ba71c69400a7b0d2c4deae59fd4ef475
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
a8911770b4628b6dc89ceb7cbd7d1ebd768a74ba54c9b0648c7056ecf0de368a
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
9bda63e9dd99f0525149db3e4f06550d2adc73966d74f21feff2447f93c991448bc6f9a22d70e0f5e7bee48ecb01f866276f4f01ee96ed98487ce08f55b0ad7b
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|