@expo/ui 55.0.13 → 55.0.15
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 +10 -0
- package/android/build.gradle +2 -2
- package/build/community/segmented-control/SegmentedControl.android.d.ts +3 -0
- package/build/community/segmented-control/SegmentedControl.android.d.ts.map +1 -0
- package/build/community/segmented-control/SegmentedControl.d.ts +7 -0
- package/build/community/segmented-control/SegmentedControl.d.ts.map +1 -0
- package/build/community/segmented-control/SegmentedControl.ios.d.ts +3 -0
- package/build/community/segmented-control/SegmentedControl.ios.d.ts.map +1 -0
- package/build/community/segmented-control/index.d.ts +5 -0
- package/build/community/segmented-control/index.d.ts.map +1 -0
- package/build/community/segmented-control/types.d.ts +57 -0
- package/build/community/segmented-control/types.d.ts.map +1 -0
- package/build/community/segmented-control/vendor/SegmentedControl.d.ts +9 -0
- package/build/community/segmented-control/vendor/SegmentedControl.d.ts.map +1 -0
- package/build/community/segmented-control/vendor/SegmentedControlTab.d.ts +15 -0
- package/build/community/segmented-control/vendor/SegmentedControlTab.d.ts.map +1 -0
- package/build/community/segmented-control/vendor/SegmentsSeparators.d.ts +10 -0
- package/build/community/segmented-control/vendor/SegmentsSeparators.d.ts.map +1 -0
- package/expo-module.config.json +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.13/expo.modules.ui-55.0.13.module → 55.0.15/expo.modules.ui-55.0.15.module} +7 -7
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.15/expo.modules.ui-55.0.15.module.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.15/expo.modules.ui-55.0.15.module.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.15/expo.modules.ui-55.0.15.module.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.15/expo.modules.ui-55.0.15.module.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.13/expo.modules.ui-55.0.13.pom → 55.0.15/expo.modules.ui-55.0.15.pom} +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.15/expo.modules.ui-55.0.15.pom.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.15/expo.modules.ui-55.0.15.pom.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.15/expo.modules.ui-55.0.15.pom.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.15/expo.modules.ui-55.0.15.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 +6 -2
- package/src/community/segmented-control/SegmentedControl.android.tsx +47 -0
- package/src/community/segmented-control/SegmentedControl.ios.tsx +53 -0
- package/src/community/segmented-control/SegmentedControl.tsx +7 -0
- package/src/community/segmented-control/index.tsx +11 -0
- package/src/community/segmented-control/types.tsx +67 -0
- package/src/community/segmented-control/vendor/LICENSE +21 -0
- package/src/community/segmented-control/vendor/SegmentedControl.tsx +149 -0
- package/src/community/segmented-control/vendor/SegmentedControlTab.tsx +73 -0
- package/src/community/segmented-control/vendor/SegmentsSeparators.tsx +59 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.13/expo.modules.ui-55.0.13.module.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.13/expo.modules.ui-55.0.13.module.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.13/expo.modules.ui-55.0.13.module.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.13/expo.modules.ui-55.0.13.module.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.13/expo.modules.ui-55.0.13.pom.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.13/expo.modules.ui-55.0.13.pom.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.13/expo.modules.ui-55.0.13.pom.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.13/expo.modules.ui-55.0.13.pom.sha512 +0 -1
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.13/expo.modules.ui-55.0.13-sources.jar → 55.0.15/expo.modules.ui-55.0.15-sources.jar} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.13/expo.modules.ui-55.0.13-sources.jar.md5 → 55.0.15/expo.modules.ui-55.0.15-sources.jar.md5} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.13/expo.modules.ui-55.0.13-sources.jar.sha1 → 55.0.15/expo.modules.ui-55.0.15-sources.jar.sha1} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.13/expo.modules.ui-55.0.13-sources.jar.sha256 → 55.0.15/expo.modules.ui-55.0.15-sources.jar.sha256} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.13/expo.modules.ui-55.0.13-sources.jar.sha512 → 55.0.15/expo.modules.ui-55.0.15-sources.jar.sha512} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.13/expo.modules.ui-55.0.13.aar → 55.0.15/expo.modules.ui-55.0.15.aar} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.13/expo.modules.ui-55.0.13.aar.md5 → 55.0.15/expo.modules.ui-55.0.15.aar.md5} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.13/expo.modules.ui-55.0.13.aar.sha1 → 55.0.15/expo.modules.ui-55.0.15.aar.sha1} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.13/expo.modules.ui-55.0.13.aar.sha256 → 55.0.15/expo.modules.ui-55.0.15.aar.sha256} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.13/expo.modules.ui-55.0.13.aar.sha512 → 55.0.15/expo.modules.ui-55.0.15.aar.sha512} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,16 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 55.0.15 — 2026-05-05
|
|
14
|
+
|
|
15
|
+
_This version does not introduce any user-facing changes._
|
|
16
|
+
|
|
17
|
+
## 55.0.14 — 2026-05-04
|
|
18
|
+
|
|
19
|
+
### 🎉 New features
|
|
20
|
+
|
|
21
|
+
- Added `@expo/ui/community/segmented-control` — a drop-in replacement for `@react-native-segmented-control/segmented-control`. ([#44611](https://github.com/expo/expo/pull/44611) by [@vonovak](https://github.com/vonovak))
|
|
22
|
+
|
|
13
23
|
## 55.0.13 — 2026-05-01
|
|
14
24
|
|
|
15
25
|
_This version does not introduce any user-facing changes._
|
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 = '55.0.
|
|
15
|
+
version = '55.0.15'
|
|
16
16
|
|
|
17
17
|
android {
|
|
18
18
|
namespace "expo.modules.ui"
|
|
19
19
|
defaultConfig {
|
|
20
20
|
versionCode 1
|
|
21
|
-
versionName "55.0.
|
|
21
|
+
versionName "55.0.15"
|
|
22
22
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
23
23
|
}
|
|
24
24
|
buildFeatures {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentedControl.android.d.ts","sourceRoot":"","sources":["../../../src/community/segmented-control/SegmentedControl.android.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAQvE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,+BAsC5D"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Web/default implementation of SegmentedControl.
|
|
3
|
+
* Vendored from @react-native-segmented-control/segmented-control (MIT license).
|
|
4
|
+
* https://github.com/react-native-segmented-control/segmented-control
|
|
5
|
+
*/
|
|
6
|
+
export { SegmentedControl } from './vendor/SegmentedControl';
|
|
7
|
+
//# sourceMappingURL=SegmentedControl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../../src/community/segmented-control/SegmentedControl.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentedControl.ios.d.ts","sourceRoot":"","sources":["../../../src/community/segmented-control/SegmentedControl.ios.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAUvE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,+BA0C5D"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SegmentedControl } from './SegmentedControl';
|
|
2
|
+
export { type NativeSegmentedControlIOSChangeEvent, type NativeSegmentedControlChangeEvent, type SegmentedControlProps, } from './types';
|
|
3
|
+
export default SegmentedControl;
|
|
4
|
+
export { SegmentedControl };
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/community/segmented-control/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EACL,KAAK,oCAAoC,EACzC,KAAK,iCAAiC,EACtC,KAAK,qBAAqB,GAC3B,MAAM,SAAS,CAAC;AAEjB,eAAe,gBAAgB,CAAC;AAEhC,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
/**
|
|
3
|
+
* Shape of the native event passed to `onChange`.
|
|
4
|
+
* Matches `@react-native-segmented-control/segmented-control`.
|
|
5
|
+
*/
|
|
6
|
+
export type NativeSegmentedControlChangeEvent = {
|
|
7
|
+
nativeEvent: {
|
|
8
|
+
selectedSegmentIndex: number;
|
|
9
|
+
value: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Shape of the native event passed to `onChange`.
|
|
14
|
+
* Matches `@react-native-segmented-control/segmented-control`.
|
|
15
|
+
* @deprecated use NativeSegmentedControlChangeEvent
|
|
16
|
+
*/
|
|
17
|
+
export type NativeSegmentedControlIOSChangeEvent = NativeSegmentedControlChangeEvent;
|
|
18
|
+
export type SegmentedControlProps = {
|
|
19
|
+
/**
|
|
20
|
+
* The labels for the control's segment buttons, in order.
|
|
21
|
+
*/
|
|
22
|
+
values?: string[];
|
|
23
|
+
/**
|
|
24
|
+
* The index of the selected segment.
|
|
25
|
+
*/
|
|
26
|
+
selectedIndex?: number;
|
|
27
|
+
/**
|
|
28
|
+
* If `false`, the user cannot interact with the control.
|
|
29
|
+
* @default true
|
|
30
|
+
*/
|
|
31
|
+
enabled?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Called when the user taps a segment.
|
|
34
|
+
* The event carries `nativeEvent.selectedSegmentIndex` and `nativeEvent.value`.
|
|
35
|
+
*/
|
|
36
|
+
onChange?: (event: NativeSegmentedControlChangeEvent) => void;
|
|
37
|
+
/**
|
|
38
|
+
* Called when the user taps a segment. Receives the segment's string value.
|
|
39
|
+
*/
|
|
40
|
+
onValueChange?: (value: string) => void;
|
|
41
|
+
/**
|
|
42
|
+
* Accent color of the control.
|
|
43
|
+
* @platform android, web
|
|
44
|
+
*/
|
|
45
|
+
tintColor?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Overrides the control's appearance irrespective of the system theme.
|
|
48
|
+
*/
|
|
49
|
+
appearance?: 'dark' | 'light';
|
|
50
|
+
style?: StyleProp<ViewStyle>;
|
|
51
|
+
testID?: string;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Builds a synthetic `onChange` event matching the community library shape.
|
|
55
|
+
*/
|
|
56
|
+
export declare function buildChangeEvent(index: number, value: string): NativeSegmentedControlChangeEvent;
|
|
57
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/community/segmented-control/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD;;;GAGG;AACH,MAAM,MAAM,iCAAiC,GAAG;IAC9C,WAAW,EAAE;QACX,oBAAoB,EAAE,MAAM,CAAC;QAC7B,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,oCAAoC,GAAG,iCAAiC,CAAC;AAErF,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,iCAAiC,KAAK,IAAI,CAAC;IAC9D;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC9B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,iCAAiC,CAOhG"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Web/default implementation of SegmentedControl.
|
|
3
|
+
* Vendored from @react-native-segmented-control/segmented-control (MIT license).
|
|
4
|
+
* https://github.com/react-native-segmented-control/segmented-control
|
|
5
|
+
*/
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { type SegmentedControlProps } from '../types';
|
|
8
|
+
export declare function SegmentedControl({ style, onChange, onValueChange, enabled, selectedIndex, values, tintColor, appearance, }: SegmentedControlProps): React.JSX.Element;
|
|
9
|
+
//# sourceMappingURL=SegmentedControl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../../../src/community/segmented-control/vendor/SegmentedControl.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAExE,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,QAAQ,EACR,aAAa,EACb,OAAc,EACd,aAAa,EACb,MAAM,EACN,SAAS,EACT,UAAU,GACX,EAAE,qBAAqB,qBAmFvB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vendored from @react-native-segmented-control/segmented-control (MIT license).
|
|
3
|
+
* https://github.com/react-native-segmented-control/segmented-control
|
|
4
|
+
*/
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
export declare function SegmentedControlTab({ onSelect, value, enabled, selected, tintColor, appearance, accessibilityHint, }: {
|
|
7
|
+
value: string;
|
|
8
|
+
tintColor?: string;
|
|
9
|
+
onSelect: () => void;
|
|
10
|
+
selected: boolean;
|
|
11
|
+
enabled: boolean;
|
|
12
|
+
appearance?: 'dark' | 'light' | null;
|
|
13
|
+
accessibilityHint?: string;
|
|
14
|
+
}): React.JSX.Element;
|
|
15
|
+
//# sourceMappingURL=SegmentedControlTab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentedControlTab.d.ts","sourceRoot":"","sources":["../../../../src/community/segmented-control/vendor/SegmentedControlTab.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,KAAK,EACL,OAAO,EACP,QAAQ,EACR,SAAS,EACT,UAAU,EACV,iBAAiB,GAClB,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;IACrC,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,qBAkCA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vendored from @react-native-segmented-control/segmented-control (MIT license).
|
|
3
|
+
* https://github.com/react-native-segmented-control/segmented-control
|
|
4
|
+
*/
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
export declare function SegmentsSeparators({ values, selectedIndex, }: {
|
|
7
|
+
values: number;
|
|
8
|
+
selectedIndex?: number;
|
|
9
|
+
}): React.JSX.Element;
|
|
10
|
+
//# sourceMappingURL=SegmentsSeparators.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentsSeparators.d.ts","sourceRoot":"","sources":["../../../../src/community/segmented-control/vendor/SegmentsSeparators.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,aAAa,GACd,EAAE;IACD,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,qBAoBA"}
|
package/expo-module.config.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"component": {
|
|
4
4
|
"group": "expo.modules.ui",
|
|
5
5
|
"module": "expo.modules.ui",
|
|
6
|
-
"version": "55.0.
|
|
6
|
+
"version": "55.0.15",
|
|
7
7
|
"attributes": {
|
|
8
8
|
"org.gradle.status": "release"
|
|
9
9
|
}
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
{
|
|
27
|
-
"name": "expo.modules.ui-55.0.
|
|
28
|
-
"url": "expo.modules.ui-55.0.
|
|
27
|
+
"name": "expo.modules.ui-55.0.15.aar",
|
|
28
|
+
"url": "expo.modules.ui-55.0.15.aar",
|
|
29
29
|
"size": 1078328,
|
|
30
30
|
"sha512": "808b352ca5908016e70ca2686f59300b6bb10e1ccaf90bc89c7b13cf7f635ada21a2200a5bb32bb7739be25571f48242224e422d099c21e1d784265013ce1294",
|
|
31
31
|
"sha256": "3f5ed3a5af84ec2ad3f936f28e0be63971ebd17006aac943818fcdbed5e6f659",
|
|
@@ -120,8 +120,8 @@
|
|
|
120
120
|
],
|
|
121
121
|
"files": [
|
|
122
122
|
{
|
|
123
|
-
"name": "expo.modules.ui-55.0.
|
|
124
|
-
"url": "expo.modules.ui-55.0.
|
|
123
|
+
"name": "expo.modules.ui-55.0.15.aar",
|
|
124
|
+
"url": "expo.modules.ui-55.0.15.aar",
|
|
125
125
|
"size": 1078328,
|
|
126
126
|
"sha512": "808b352ca5908016e70ca2686f59300b6bb10e1ccaf90bc89c7b13cf7f635ada21a2200a5bb32bb7739be25571f48242224e422d099c21e1d784265013ce1294",
|
|
127
127
|
"sha256": "3f5ed3a5af84ec2ad3f936f28e0be63971ebd17006aac943818fcdbed5e6f659",
|
|
@@ -140,8 +140,8 @@
|
|
|
140
140
|
},
|
|
141
141
|
"files": [
|
|
142
142
|
{
|
|
143
|
-
"name": "expo.modules.ui-55.0.
|
|
144
|
-
"url": "expo.modules.ui-55.0.
|
|
143
|
+
"name": "expo.modules.ui-55.0.15-sources.jar",
|
|
144
|
+
"url": "expo.modules.ui-55.0.15-sources.jar",
|
|
145
145
|
"size": 68147,
|
|
146
146
|
"sha512": "08d65b836394cc88f152cfb2a1ee79ae229155b54ab069dac6a7bfe4cabd8a30b09428b5261025453b3289aa6b1d4aeffca52365e74aefb4af9ade252a1c80a9",
|
|
147
147
|
"sha256": "70de253a9147c6ff1cf1874e6cdb587183aaabcbe10631ab4051f0ad254c54d5",
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.15/expo.modules.ui-55.0.15.module.md5
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
7b42d7148d63551fa4adcba4e4b9a1d7
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.15/expo.modules.ui-55.0.15.module.sha1
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
f13a0b3c2098f961965f16c76d636b528a37eee9
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
8eb3d429fc798ee721f3227cca33350641d286cc23aec6b6abe34e25236e50a3
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
e741639c8ff4399e2604395f72920379cd4255564a9a0b5a840d99d8bd4ac9594eb01e1850ee981eb887ee97b572310c12f55e80dd0cdb3f6a66d0170d5e80a3
|
|
@@ -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>55.0.
|
|
12
|
+
<version>55.0.15</version>
|
|
13
13
|
<packaging>aar</packaging>
|
|
14
14
|
<name>expo.modules.ui</name>
|
|
15
15
|
<url>https://github.com/expo/expo</url>
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.15/expo.modules.ui-55.0.15.pom.md5
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
c58815a2fd5ffcfa0696913e8421e339
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.15/expo.modules.ui-55.0.15.pom.sha1
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
db0631961294976091e026783721eca40cce9ed2
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.15/expo.modules.ui-55.0.15.pom.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
4b54ea5f1228e92dcf1b20a63e69c6c78a58aceed54cd86df2301e86fd84ebaa
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.15/expo.modules.ui-55.0.15.pom.sha512
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2657989a6d61f15514c0111055a5eb9dd2dc7874b6a71a9ee4d7e29c45fb45adafad425f19b4f646e0c77b25d91953593d3d1b6a09a8588dcafdc88ed2294409
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<groupId>expo.modules.ui</groupId>
|
|
4
4
|
<artifactId>expo.modules.ui</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<latest>55.0.
|
|
7
|
-
<release>55.0.
|
|
6
|
+
<latest>55.0.15</latest>
|
|
7
|
+
<release>55.0.15</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>55.0.
|
|
9
|
+
<version>55.0.15</version>
|
|
10
10
|
</versions>
|
|
11
|
-
<lastUpdated>
|
|
11
|
+
<lastUpdated>20260505155706</lastUpdated>
|
|
12
12
|
</versioning>
|
|
13
13
|
</metadata>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
3f5b17fe36d44e4ecd9dc53589913b61
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
677cc80196013e2f26758a4c1bf4bcdc26a5b3c8
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
c445d64301496b468e6d2cd4d99591e0b56a51696bc86cfebd473080f3fb3450
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
7dabae512c00893fb3f35a963ccf81797c1ed29e18915d4c68f2f98c79ff7977876672bab2963e52f14fedef2a3d8ce8eb50ba54f02742f2c633c6781a83b0c9
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/ui",
|
|
3
|
-
"version": "55.0.
|
|
3
|
+
"version": "55.0.15",
|
|
4
4
|
"description": "A collection of UI components",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.fx.js"
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
"./datetimepicker": {
|
|
27
27
|
"types": "./build/datetime-picker/index.d.ts",
|
|
28
28
|
"default": "./src/datetime-picker/index.tsx"
|
|
29
|
+
},
|
|
30
|
+
"./community/segmented-control": {
|
|
31
|
+
"types": "./build/community/segmented-control/index.d.ts",
|
|
32
|
+
"default": "./src/community/segmented-control/index.tsx"
|
|
29
33
|
}
|
|
30
34
|
},
|
|
31
35
|
"scripts": {
|
|
@@ -67,5 +71,5 @@
|
|
|
67
71
|
"react": "*",
|
|
68
72
|
"react-native": "*"
|
|
69
73
|
},
|
|
70
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "7c081282cf88968f81732feb67a71840e769a40f"
|
|
71
75
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { buildChangeEvent, type SegmentedControlProps } from './types';
|
|
2
|
+
import { Host } from '../../jetpack-compose/Host';
|
|
3
|
+
import {
|
|
4
|
+
SingleChoiceSegmentedButtonRow,
|
|
5
|
+
SegmentedButton,
|
|
6
|
+
} from '../../jetpack-compose/SegmentedButton';
|
|
7
|
+
import { Text } from '../../jetpack-compose/Text';
|
|
8
|
+
|
|
9
|
+
export function SegmentedControl(props: SegmentedControlProps) {
|
|
10
|
+
const {
|
|
11
|
+
values,
|
|
12
|
+
selectedIndex,
|
|
13
|
+
enabled = true,
|
|
14
|
+
onChange,
|
|
15
|
+
onValueChange,
|
|
16
|
+
tintColor,
|
|
17
|
+
appearance,
|
|
18
|
+
style,
|
|
19
|
+
} = props;
|
|
20
|
+
|
|
21
|
+
const handleClick = (index: number) => {
|
|
22
|
+
const val = values?.[index] ?? '';
|
|
23
|
+
onValueChange?.(val);
|
|
24
|
+
onChange?.(buildChangeEvent(index, val));
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const colors = tintColor ? { activeContainerColor: tintColor } : undefined;
|
|
28
|
+
|
|
29
|
+
return (
|
|
30
|
+
<Host matchContents={{ vertical: true }} style={style} colorScheme={appearance}>
|
|
31
|
+
<SingleChoiceSegmentedButtonRow>
|
|
32
|
+
{(values ?? []).map((label, index) => (
|
|
33
|
+
<SegmentedButton
|
|
34
|
+
key={index}
|
|
35
|
+
selected={index === selectedIndex}
|
|
36
|
+
onClick={() => handleClick(index)}
|
|
37
|
+
enabled={enabled}
|
|
38
|
+
colors={colors}>
|
|
39
|
+
<SegmentedButton.Label>
|
|
40
|
+
<Text>{label}</Text>
|
|
41
|
+
</SegmentedButton.Label>
|
|
42
|
+
</SegmentedButton>
|
|
43
|
+
))}
|
|
44
|
+
</SingleChoiceSegmentedButtonRow>
|
|
45
|
+
</Host>
|
|
46
|
+
);
|
|
47
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { buildChangeEvent, type SegmentedControlProps } from './types';
|
|
2
|
+
import { Host } from '../../swift-ui/Host';
|
|
3
|
+
import { Picker } from '../../swift-ui/Picker';
|
|
4
|
+
import { Text } from '../../swift-ui/Text';
|
|
5
|
+
import { disabled as disabledModifier } from '../../swift-ui/modifiers';
|
|
6
|
+
import { environment } from '../../swift-ui/modifiers/environment';
|
|
7
|
+
import { pickerStyle } from '../../swift-ui/modifiers/pickerStyle';
|
|
8
|
+
import { tag } from '../../swift-ui/modifiers/tag';
|
|
9
|
+
import type { ModifierConfig } from '../../types';
|
|
10
|
+
|
|
11
|
+
export function SegmentedControl(props: SegmentedControlProps) {
|
|
12
|
+
const {
|
|
13
|
+
values,
|
|
14
|
+
selectedIndex,
|
|
15
|
+
enabled = true,
|
|
16
|
+
onChange,
|
|
17
|
+
onValueChange,
|
|
18
|
+
appearance,
|
|
19
|
+
style,
|
|
20
|
+
testID,
|
|
21
|
+
} = props;
|
|
22
|
+
|
|
23
|
+
const modifiers: ModifierConfig[] = [pickerStyle('segmented')];
|
|
24
|
+
if (!enabled) {
|
|
25
|
+
modifiers.push(disabledModifier());
|
|
26
|
+
}
|
|
27
|
+
if (appearance) {
|
|
28
|
+
modifiers.push(environment('colorScheme', appearance));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const handleSelectionChange = (selection: number) => {
|
|
32
|
+
const val = values?.[selection] ?? '';
|
|
33
|
+
onValueChange?.(val);
|
|
34
|
+
onChange?.(buildChangeEvent(selection, val));
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<Host matchContents={{ vertical: true }} style={style}>
|
|
39
|
+
<Picker
|
|
40
|
+
selection={selectedIndex}
|
|
41
|
+
onSelectionChange={handleSelectionChange}
|
|
42
|
+
modifiers={modifiers}
|
|
43
|
+
label=""
|
|
44
|
+
testID={testID}>
|
|
45
|
+
{(values ?? []).map((label, index) => (
|
|
46
|
+
<Text key={index} modifiers={[tag(index)]}>
|
|
47
|
+
{label}
|
|
48
|
+
</Text>
|
|
49
|
+
))}
|
|
50
|
+
</Picker>
|
|
51
|
+
</Host>
|
|
52
|
+
);
|
|
53
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Web/default implementation of SegmentedControl.
|
|
3
|
+
* Vendored from @react-native-segmented-control/segmented-control (MIT license).
|
|
4
|
+
* https://github.com/react-native-segmented-control/segmented-control
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export { SegmentedControl } from './vendor/SegmentedControl';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SegmentedControl } from './SegmentedControl';
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
type NativeSegmentedControlIOSChangeEvent,
|
|
5
|
+
type NativeSegmentedControlChangeEvent,
|
|
6
|
+
type SegmentedControlProps,
|
|
7
|
+
} from './types';
|
|
8
|
+
|
|
9
|
+
export default SegmentedControl;
|
|
10
|
+
// named export needed for docs generator
|
|
11
|
+
export { SegmentedControl };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Shape of the native event passed to `onChange`.
|
|
5
|
+
* Matches `@react-native-segmented-control/segmented-control`.
|
|
6
|
+
*/
|
|
7
|
+
export type NativeSegmentedControlChangeEvent = {
|
|
8
|
+
nativeEvent: {
|
|
9
|
+
selectedSegmentIndex: number;
|
|
10
|
+
value: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Shape of the native event passed to `onChange`.
|
|
16
|
+
* Matches `@react-native-segmented-control/segmented-control`.
|
|
17
|
+
* @deprecated use NativeSegmentedControlChangeEvent
|
|
18
|
+
*/
|
|
19
|
+
export type NativeSegmentedControlIOSChangeEvent = NativeSegmentedControlChangeEvent;
|
|
20
|
+
|
|
21
|
+
export type SegmentedControlProps = {
|
|
22
|
+
/**
|
|
23
|
+
* The labels for the control's segment buttons, in order.
|
|
24
|
+
*/
|
|
25
|
+
values?: string[];
|
|
26
|
+
/**
|
|
27
|
+
* The index of the selected segment.
|
|
28
|
+
*/
|
|
29
|
+
selectedIndex?: number;
|
|
30
|
+
/**
|
|
31
|
+
* If `false`, the user cannot interact with the control.
|
|
32
|
+
* @default true
|
|
33
|
+
*/
|
|
34
|
+
enabled?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Called when the user taps a segment.
|
|
37
|
+
* The event carries `nativeEvent.selectedSegmentIndex` and `nativeEvent.value`.
|
|
38
|
+
*/
|
|
39
|
+
onChange?: (event: NativeSegmentedControlChangeEvent) => void;
|
|
40
|
+
/**
|
|
41
|
+
* Called when the user taps a segment. Receives the segment's string value.
|
|
42
|
+
*/
|
|
43
|
+
onValueChange?: (value: string) => void;
|
|
44
|
+
/**
|
|
45
|
+
* Accent color of the control.
|
|
46
|
+
* @platform android, web
|
|
47
|
+
*/
|
|
48
|
+
tintColor?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Overrides the control's appearance irrespective of the system theme.
|
|
51
|
+
*/
|
|
52
|
+
appearance?: 'dark' | 'light';
|
|
53
|
+
style?: StyleProp<ViewStyle>;
|
|
54
|
+
testID?: string;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Builds a synthetic `onChange` event matching the community library shape.
|
|
59
|
+
*/
|
|
60
|
+
export function buildChangeEvent(index: number, value: string): NativeSegmentedControlChangeEvent {
|
|
61
|
+
return {
|
|
62
|
+
nativeEvent: {
|
|
63
|
+
selectedSegmentIndex: index,
|
|
64
|
+
value,
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015-present, Facebook, Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Web/default implementation of SegmentedControl.
|
|
3
|
+
* Vendored from @react-native-segmented-control/segmented-control (MIT license).
|
|
4
|
+
* https://github.com/react-native-segmented-control/segmented-control
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as React from 'react';
|
|
8
|
+
import { Animated, Easing, I18nManager, StyleSheet, View, useColorScheme } from 'react-native';
|
|
9
|
+
|
|
10
|
+
import { SegmentedControlTab } from './SegmentedControlTab';
|
|
11
|
+
import { SegmentsSeparators } from './SegmentsSeparators';
|
|
12
|
+
import { buildChangeEvent, type SegmentedControlProps } from '../types';
|
|
13
|
+
|
|
14
|
+
export function SegmentedControl({
|
|
15
|
+
style,
|
|
16
|
+
onChange,
|
|
17
|
+
onValueChange,
|
|
18
|
+
enabled = true,
|
|
19
|
+
selectedIndex,
|
|
20
|
+
values,
|
|
21
|
+
tintColor,
|
|
22
|
+
appearance,
|
|
23
|
+
}: SegmentedControlProps) {
|
|
24
|
+
const colorSchemeHook = useColorScheme();
|
|
25
|
+
const colorScheme = appearance || colorSchemeHook;
|
|
26
|
+
const [segmentWidth, setSegmentWidth] = React.useState(0);
|
|
27
|
+
const animation = React.useRef(new Animated.Value(0)).current;
|
|
28
|
+
|
|
29
|
+
const handleChange = (index: number) => {
|
|
30
|
+
const val = values?.[index] ?? '';
|
|
31
|
+
onValueChange?.(val);
|
|
32
|
+
if (onChange) {
|
|
33
|
+
onChange(buildChangeEvent(index, val));
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const updateSegmentWidth = React.useCallback(
|
|
38
|
+
(width: number) => {
|
|
39
|
+
const count = values?.length ?? 0;
|
|
40
|
+
const newSegmentWidth = count ? width / count : 0;
|
|
41
|
+
if (newSegmentWidth !== segmentWidth) {
|
|
42
|
+
animation.setValue(newSegmentWidth * (selectedIndex ?? 0));
|
|
43
|
+
setSegmentWidth(newSegmentWidth);
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
[values?.length, segmentWidth, animation, selectedIndex]
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
React.useEffect(() => {
|
|
50
|
+
if (animation && segmentWidth) {
|
|
51
|
+
const isRTL = I18nManager.isRTL ? -segmentWidth : segmentWidth;
|
|
52
|
+
Animated.timing(animation, {
|
|
53
|
+
toValue: isRTL * (selectedIndex ?? 0),
|
|
54
|
+
duration: 300,
|
|
55
|
+
easing: Easing.out(Easing.quad),
|
|
56
|
+
useNativeDriver: true,
|
|
57
|
+
}).start();
|
|
58
|
+
}
|
|
59
|
+
}, [animation, segmentWidth, selectedIndex]);
|
|
60
|
+
|
|
61
|
+
return (
|
|
62
|
+
<View
|
|
63
|
+
style={[
|
|
64
|
+
styles.default,
|
|
65
|
+
style,
|
|
66
|
+
colorScheme === 'dark' && styles.darkControl,
|
|
67
|
+
!enabled && styles.disabled,
|
|
68
|
+
]}
|
|
69
|
+
onLayout={({
|
|
70
|
+
nativeEvent: {
|
|
71
|
+
layout: { width },
|
|
72
|
+
},
|
|
73
|
+
}) => updateSegmentWidth(width)}>
|
|
74
|
+
{!tintColor && (
|
|
75
|
+
<SegmentsSeparators values={values?.length ?? 0} selectedIndex={selectedIndex} />
|
|
76
|
+
)}
|
|
77
|
+
{selectedIndex != null && segmentWidth ? (
|
|
78
|
+
<Animated.View
|
|
79
|
+
style={[
|
|
80
|
+
styles.slider,
|
|
81
|
+
{
|
|
82
|
+
transform: [{ translateX: animation }],
|
|
83
|
+
width: segmentWidth - 4,
|
|
84
|
+
zIndex: -1,
|
|
85
|
+
backgroundColor: tintColor || (colorScheme === 'dark' ? '#636366' : 'white'),
|
|
86
|
+
},
|
|
87
|
+
]}
|
|
88
|
+
/>
|
|
89
|
+
) : null}
|
|
90
|
+
<View style={styles.segmentsContainer}>
|
|
91
|
+
{values?.map((value, index) => (
|
|
92
|
+
<SegmentedControlTab
|
|
93
|
+
enabled={enabled}
|
|
94
|
+
selected={selectedIndex === index}
|
|
95
|
+
accessibilityHint={`${index + 1} out of ${values.length}`}
|
|
96
|
+
key={index}
|
|
97
|
+
value={value}
|
|
98
|
+
tintColor={tintColor}
|
|
99
|
+
appearance={colorScheme === 'dark' ? 'dark' : 'light'}
|
|
100
|
+
onSelect={() => handleChange(index)}
|
|
101
|
+
/>
|
|
102
|
+
))}
|
|
103
|
+
</View>
|
|
104
|
+
</View>
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
const styles = StyleSheet.create({
|
|
109
|
+
default: {
|
|
110
|
+
overflow: 'hidden',
|
|
111
|
+
position: 'relative',
|
|
112
|
+
height: 32,
|
|
113
|
+
backgroundColor: '#EEEEF0',
|
|
114
|
+
borderRadius: 9,
|
|
115
|
+
},
|
|
116
|
+
darkControl: {
|
|
117
|
+
backgroundColor: '#1C1C1F',
|
|
118
|
+
},
|
|
119
|
+
disabled: {
|
|
120
|
+
opacity: 0.4,
|
|
121
|
+
},
|
|
122
|
+
slider: {
|
|
123
|
+
position: 'absolute',
|
|
124
|
+
borderRadius: 7,
|
|
125
|
+
top: 2,
|
|
126
|
+
bottom: 2,
|
|
127
|
+
right: 2,
|
|
128
|
+
left: 2,
|
|
129
|
+
borderWidth: 0.5,
|
|
130
|
+
borderColor: 'rgba(0,0,0,0.04)',
|
|
131
|
+
shadowColor: '#000',
|
|
132
|
+
shadowOffset: {
|
|
133
|
+
width: 0,
|
|
134
|
+
height: 1,
|
|
135
|
+
},
|
|
136
|
+
shadowOpacity: 0.22,
|
|
137
|
+
shadowRadius: 2.22,
|
|
138
|
+
elevation: 3,
|
|
139
|
+
},
|
|
140
|
+
segmentsContainer: {
|
|
141
|
+
flex: 1,
|
|
142
|
+
flexDirection: 'row',
|
|
143
|
+
justifyContent: 'space-evenly',
|
|
144
|
+
alignItems: 'center',
|
|
145
|
+
elevation: 5,
|
|
146
|
+
backgroundColor: 'transparent',
|
|
147
|
+
zIndex: 99,
|
|
148
|
+
},
|
|
149
|
+
});
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vendored from @react-native-segmented-control/segmented-control (MIT license).
|
|
3
|
+
* https://github.com/react-native-segmented-control/segmented-control
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { StyleSheet, Text, TouchableOpacity, View, useColorScheme } from 'react-native';
|
|
8
|
+
|
|
9
|
+
export function SegmentedControlTab({
|
|
10
|
+
onSelect,
|
|
11
|
+
value,
|
|
12
|
+
enabled,
|
|
13
|
+
selected,
|
|
14
|
+
tintColor,
|
|
15
|
+
appearance,
|
|
16
|
+
accessibilityHint,
|
|
17
|
+
}: {
|
|
18
|
+
value: string;
|
|
19
|
+
tintColor?: string;
|
|
20
|
+
onSelect: () => void;
|
|
21
|
+
selected: boolean;
|
|
22
|
+
enabled: boolean;
|
|
23
|
+
appearance?: 'dark' | 'light' | null;
|
|
24
|
+
accessibilityHint?: string;
|
|
25
|
+
}) {
|
|
26
|
+
const colorSchemeHook = useColorScheme();
|
|
27
|
+
const colorScheme = appearance || colorSchemeHook;
|
|
28
|
+
|
|
29
|
+
const getColor = () => {
|
|
30
|
+
if (tintColor) {
|
|
31
|
+
return 'white';
|
|
32
|
+
}
|
|
33
|
+
return colorScheme === 'dark' ? '#FFF' : '#000';
|
|
34
|
+
};
|
|
35
|
+
const color = getColor();
|
|
36
|
+
|
|
37
|
+
const activeStyle = {
|
|
38
|
+
...styles.activeText,
|
|
39
|
+
color,
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const idleStyle = {
|
|
43
|
+
color,
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
return (
|
|
47
|
+
<TouchableOpacity
|
|
48
|
+
style={styles.container}
|
|
49
|
+
disabled={!enabled}
|
|
50
|
+
onPress={onSelect}
|
|
51
|
+
accessibilityHint={accessibilityHint}
|
|
52
|
+
accessibilityRole="button"
|
|
53
|
+
accessibilityState={{ selected, disabled: !enabled }}>
|
|
54
|
+
<View style={styles.default}>
|
|
55
|
+
<Text style={[idleStyle, selected && activeStyle]}>{value}</Text>
|
|
56
|
+
</View>
|
|
57
|
+
</TouchableOpacity>
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const styles = StyleSheet.create({
|
|
62
|
+
container: { flex: 1, borderRadius: 5 },
|
|
63
|
+
default: {
|
|
64
|
+
flex: 1,
|
|
65
|
+
justifyContent: 'center',
|
|
66
|
+
alignItems: 'center',
|
|
67
|
+
margin: 2,
|
|
68
|
+
borderRadius: 5,
|
|
69
|
+
},
|
|
70
|
+
activeText: {
|
|
71
|
+
fontWeight: '700',
|
|
72
|
+
},
|
|
73
|
+
});
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vendored from @react-native-segmented-control/segmented-control (MIT license).
|
|
3
|
+
* https://github.com/react-native-segmented-control/segmented-control
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { StyleSheet, View, useColorScheme } from 'react-native';
|
|
8
|
+
|
|
9
|
+
export function SegmentsSeparators({
|
|
10
|
+
values,
|
|
11
|
+
selectedIndex,
|
|
12
|
+
}: {
|
|
13
|
+
values: number;
|
|
14
|
+
selectedIndex?: number;
|
|
15
|
+
}) {
|
|
16
|
+
const colorScheme = useColorScheme();
|
|
17
|
+
const hide = (val: number) => {
|
|
18
|
+
return selectedIndex === val || selectedIndex === val + 1;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
return (
|
|
22
|
+
<View style={styles.separatorsContainer}>
|
|
23
|
+
{[...Array(values - 1).keys()].map((val) => (
|
|
24
|
+
<View
|
|
25
|
+
key={val}
|
|
26
|
+
style={[
|
|
27
|
+
styles.separator,
|
|
28
|
+
colorScheme === 'dark' && styles.darkSeparator,
|
|
29
|
+
hide(val) && styles.hide,
|
|
30
|
+
]}
|
|
31
|
+
/>
|
|
32
|
+
))}
|
|
33
|
+
</View>
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const styles = StyleSheet.create({
|
|
38
|
+
separatorsContainer: {
|
|
39
|
+
position: 'absolute',
|
|
40
|
+
top: 0,
|
|
41
|
+
left: 0,
|
|
42
|
+
right: 0,
|
|
43
|
+
bottom: 0,
|
|
44
|
+
flexDirection: 'row',
|
|
45
|
+
alignItems: 'center',
|
|
46
|
+
justifyContent: 'space-evenly',
|
|
47
|
+
},
|
|
48
|
+
separator: {
|
|
49
|
+
width: 1,
|
|
50
|
+
height: '50%',
|
|
51
|
+
backgroundColor: '#D1D1D4',
|
|
52
|
+
},
|
|
53
|
+
darkSeparator: {
|
|
54
|
+
backgroundColor: '#3F3F42',
|
|
55
|
+
},
|
|
56
|
+
hide: {
|
|
57
|
+
backgroundColor: 'transparent',
|
|
58
|
+
},
|
|
59
|
+
});
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.13/expo.modules.ui-55.0.13.module.md5
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
f7f22f20758e05f64f951bc8a7048487
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.13/expo.modules.ui-55.0.13.module.sha1
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
f7c36a616f7c6abf71db0823ec8ebb756e594a56
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2184d0d7bbb2243abbbdf8bfd5dae66237f4438be9576e978a0c80dfcb3f0484
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
fd5e21e5c33c475b0827852b9f9f05bc75ac9150350a57d6a23743f3e45126f032f118f2e0a6a929af2f389cbb52d2ea992dce5145238b95f96a68ed1f904e38
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.13/expo.modules.ui-55.0.13.pom.md5
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ed646eb57b1124bcd983ba7e4bf98c9d
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.13/expo.modules.ui-55.0.13.pom.sha1
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
449eb5c9283e627425269f7c3fe9caef9a5a665c
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.13/expo.modules.ui-55.0.13.pom.sha256
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
7bc2426fe5ade34bc829df2b337da9217210e73d3c6dfb07e56601af7c7abd44
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.13/expo.modules.ui-55.0.13.pom.sha512
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
8cdd412e1f6071d984f0f2c0487f7962e2ad48cf40fcf165239e91cd3c837743cfb52fbb7369ee0e1b6df74918698fe472cf3f6dc71043e118a81f550d82390d
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|