@expo/ui 56.0.9 → 56.0.10
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 +13 -0
- package/CLAUDE.md +1 -1
- package/android/build.gradle +2 -2
- package/android/src/main/java/expo/modules/ui/ExpoUIModule.kt +11 -5
- package/android/src/main/java/expo/modules/ui/HorizontalPagerView.kt +97 -16
- package/android/src/main/java/expo/modules/ui/colors/MaterialColors.kt +2 -0
- package/build/State/index.d.ts +6 -0
- package/build/State/index.d.ts.map +1 -0
- package/build/community/pager-view/PagerView.android.d.ts +7 -0
- package/build/community/pager-view/PagerView.android.d.ts.map +1 -0
- package/build/community/pager-view/PagerView.d.ts +8 -0
- package/build/community/pager-view/PagerView.d.ts.map +1 -0
- package/build/community/pager-view/PagerView.ios.d.ts +15 -0
- package/build/community/pager-view/PagerView.ios.d.ts.map +1 -0
- package/build/community/pager-view/index.d.ts +3 -0
- package/build/community/pager-view/index.d.ts.map +1 -0
- package/build/community/pager-view/types.d.ts +128 -0
- package/build/community/pager-view/types.d.ts.map +1 -0
- package/build/community/segmented-control/vendor/SegmentsSeparators.d.ts.map +1 -1
- package/build/jetpack-compose/HorizontalPager/index.d.ts +27 -0
- package/build/jetpack-compose/HorizontalPager/index.d.ts.map +1 -1
- package/build/jetpack-compose/Host/index.d.ts +1 -0
- package/build/jetpack-compose/Host/index.d.ts.map +1 -1
- package/build/jetpack-compose/LoadingIndicator/index.d.ts +1 -1
- package/build/jetpack-compose/LoadingIndicator/index.d.ts.map +1 -1
- package/build/jetpack-compose/SyncSwitch/index.d.ts +1 -1
- package/build/jetpack-compose/SyncSwitch/index.d.ts.map +1 -1
- package/build/jetpack-compose/TextField/index.d.ts +1 -1
- package/build/jetpack-compose/TextField/index.d.ts.map +1 -1
- package/build/jetpack-compose/index.d.ts +1 -2
- package/build/jetpack-compose/index.d.ts.map +1 -1
- package/build/swift-ui/Host/index.d.ts +1 -0
- package/build/swift-ui/Host/index.d.ts.map +1 -1
- package/build/swift-ui/ScrollView/index.d.ts +30 -0
- package/build/swift-ui/ScrollView/index.d.ts.map +1 -1
- package/build/swift-ui/SecureField/index.d.ts +1 -1
- package/build/swift-ui/SecureField/index.d.ts.map +1 -1
- package/build/swift-ui/SyncToggle/index.d.ts +1 -1
- package/build/swift-ui/SyncToggle/index.d.ts.map +1 -1
- package/build/swift-ui/TextField/index.d.ts +1 -1
- package/build/swift-ui/TextField/index.d.ts.map +1 -1
- package/build/swift-ui/index.d.ts +1 -2
- package/build/swift-ui/index.d.ts.map +1 -1
- package/build/swift-ui/modifiers/index.d.ts +25 -15
- package/build/swift-ui/modifiers/index.d.ts.map +1 -1
- package/build/swift-ui/modifiers/scrollObservation.d.ts +52 -0
- package/build/swift-ui/modifiers/scrollObservation.d.ts.map +1 -0
- package/build/swift-ui/modifiers/scrollPosition.d.ts +1 -1
- package/build/swift-ui/modifiers/scrollPosition.d.ts.map +1 -1
- package/build/swift-ui/modifiers/symbolEffect.d.ts +1 -1
- package/build/swift-ui/modifiers/symbolEffect.d.ts.map +1 -1
- package/build/universal/BottomSheet/index.android.d.ts.map +1 -1
- package/build/universal/BottomSheet/index.d.ts.map +1 -1
- package/build/universal/BottomSheet/index.ios.d.ts.map +1 -1
- package/build/universal/Checkbox/index.d.ts.map +1 -1
- package/build/universal/Collapsible/index.d.ts.map +1 -1
- package/build/universal/ListItem/ListItem.d.ts.map +1 -1
- package/build/universal/RNHostView/index.android.d.ts +7 -0
- package/build/universal/RNHostView/index.android.d.ts.map +1 -0
- package/build/universal/RNHostView/index.d.ts +7 -0
- package/build/universal/RNHostView/index.d.ts.map +1 -0
- package/build/universal/RNHostView/index.ios.d.ts +7 -0
- package/build/universal/RNHostView/index.ios.d.ts.map +1 -0
- package/build/universal/RNHostView/types.d.ts +23 -0
- package/build/universal/RNHostView/types.d.ts.map +1 -0
- package/build/universal/Switch/index.d.ts.map +1 -1
- package/build/universal/TextInput/index.d.ts.map +1 -1
- package/build/universal/index.d.ts +1 -0
- package/build/universal/index.d.ts.map +1 -1
- package/expo-module.config.json +1 -1
- package/ios/ExpoUIModule.swift +6 -3
- package/ios/HostView.swift +21 -18
- package/ios/Modifiers/FontModifier.swift +72 -20
- package/ios/Modifiers/ScrollObservationModifiers.swift +107 -0
- package/ios/Modifiers/ViewModifierRegistry.swift +8 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{56.0.9/expo.modules.ui-56.0.9-sources.jar → 56.0.10/expo.modules.ui-56.0.10-sources.jar} +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10-sources.jar.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10-sources.jar.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10-sources.jar.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10-sources.jar.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10.aar +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10.aar.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10.aar.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10.aar.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10.aar.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{56.0.9/expo.modules.ui-56.0.9.module → 56.0.10/expo.modules.ui-56.0.10.module} +22 -22
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10.module.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10.module.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10.module.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10.module.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{56.0.9/expo.modules.ui-56.0.9.pom → 56.0.10/expo.modules.ui-56.0.10.pom} +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10.pom.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10.pom.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10.pom.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.10/expo.modules.ui-56.0.10.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 +7 -3
- package/src/State/index.ts +10 -0
- package/src/State/useNativeState.ts +8 -0
- package/src/community/pager-view/PagerView.android.tsx +223 -0
- package/src/community/pager-view/PagerView.ios.tsx +267 -0
- package/src/community/pager-view/PagerView.tsx +14 -0
- package/src/community/pager-view/index.tsx +13 -0
- package/src/community/pager-view/types.tsx +137 -0
- package/src/community/picker/Picker.android.tsx +1 -1
- package/src/community/segmented-control/vendor/SegmentsSeparators.tsx +3 -6
- package/src/jetpack-compose/HorizontalPager/index.tsx +89 -18
- package/src/jetpack-compose/Host/index.tsx +1 -0
- package/src/jetpack-compose/LoadingIndicator/index.tsx +1 -2
- package/src/jetpack-compose/SyncSwitch/index.tsx +1 -3
- package/src/jetpack-compose/TextField/index.tsx +1 -4
- package/src/jetpack-compose/index.ts +1 -2
- package/src/swift-ui/Host/index.tsx +1 -0
- package/src/swift-ui/ScrollView/index.tsx +33 -0
- package/src/swift-ui/SecureField/index.tsx +1 -4
- package/src/swift-ui/SyncToggle/index.tsx +1 -3
- package/src/swift-ui/TextField/index.tsx +1 -4
- package/src/swift-ui/index.tsx +1 -3
- package/src/swift-ui/modifiers/index.ts +37 -14
- package/src/swift-ui/modifiers/scrollObservation.ts +80 -0
- package/src/swift-ui/modifiers/scrollPosition.ts +1 -2
- package/src/swift-ui/modifiers/symbolEffect.ts +1 -2
- package/src/swift-ui/withAnimation.ts +1 -1
- package/src/universal/BottomSheet/index.android.tsx +33 -10
- package/src/universal/BottomSheet/index.ios.tsx +12 -10
- package/src/universal/BottomSheet/index.tsx +3 -0
- package/src/universal/Checkbox/index.tsx +14 -2
- package/src/universal/Collapsible/index.tsx +17 -4
- package/src/universal/ListItem/ListItem.tsx +7 -2
- package/src/universal/RNHostView/index.android.tsx +33 -0
- package/src/universal/RNHostView/index.ios.tsx +12 -0
- package/src/universal/RNHostView/index.tsx +39 -0
- package/src/universal/RNHostView/types.ts +25 -0
- package/src/universal/Switch/index.tsx +7 -2
- package/src/universal/TextInput/index.tsx +12 -2
- package/src/universal/index.ts +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9-sources.jar.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9-sources.jar.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9-sources.jar.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9-sources.jar.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.aar +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.aar.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.aar.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.aar.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.aar.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.module.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.module.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.module.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.module.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.pom.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.pom.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.pom.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.9/expo.modules.ui-56.0.9.pom.sha512 +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,18 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 56.0.10 — 2026-05-20
|
|
14
|
+
|
|
15
|
+
### 🎉 New features
|
|
16
|
+
|
|
17
|
+
- Added `@expo/ui/community/pager-view` — a drop-in replacement for `react-native-pager-view`. ([#45499](https://github.com/expo/expo/pull/45499) by [@vonovak](https://github.com/vonovak))
|
|
18
|
+
- [iOS] Added `textStyle` option to `font` modifier in `@expo/ui/swift-ui` for iOS Dynamic Type scaling. ([#46007](https://github.com/expo/expo/pull/46007) by [@ramonclaudio](https://github.com/ramonclaudio))
|
|
19
|
+
|
|
20
|
+
### 🐛 Bug fixes
|
|
21
|
+
|
|
22
|
+
- [universal] Fix universal components dark theme ([#45969](https://github.com/expo/expo/pull/45969) by [@zoontek](https://github.com/zoontek))
|
|
23
|
+
- [universal] Fix `BottomSheet` behavior by making `Host` optional, and fix Android exit animation. ([#46031](https://github.com/expo/expo/pull/46031) by [@nishan](https://github.com/intergalacticspacehighway))
|
|
24
|
+
|
|
13
25
|
## 56.0.9 — 2026-05-19
|
|
14
26
|
|
|
15
27
|
### 🎉 New features
|
|
@@ -23,6 +35,7 @@
|
|
|
23
35
|
### 🐛 Bug fixes
|
|
24
36
|
|
|
25
37
|
- [iOS] Unmount `BottomSheet` when it is dismissed. ([#45846](https://github.com/expo/expo/pull/45846) by [@nishan](https://github.com/intergalacticspacehighway))
|
|
38
|
+
- [iOS] Apply `modifiers` prop on `Host` instead of silently dropping it. ([#45872](https://github.com/expo/expo/pull/45872) by [@ramonclaudio](https://github.com/ramonclaudio))
|
|
26
39
|
|
|
27
40
|
### 💡 Others
|
|
28
41
|
|
package/CLAUDE.md
CHANGED
|
@@ -6,7 +6,7 @@ expo-ui is a library of native UI components for React Native, bridging SwiftUI
|
|
|
6
6
|
|
|
7
7
|
Bridge native components to JavaScript with as little abstraction as possible. Native views should be thin wrappers — no added logic, state management, or behavior beyond what the platform component provides. Everything that can be set or controlled from JavaScript should be controlled from JavaScript.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Mirror the native API shape. If the underlying SwiftUI / Compose component exposes imperative methods (e.g. SwiftUI's `ScrollViewProxy.scrollTo`, Compose's `PagerState.animateScrollToPage`), expose them as imperative methods in JS — don't paper them over with a controlled prop + sync layer just for the sake of a "React-y" API.
|
|
10
10
|
|
|
11
11
|
## Naming
|
|
12
12
|
|
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 = '56.0.
|
|
15
|
+
version = '56.0.10'
|
|
16
16
|
|
|
17
17
|
android {
|
|
18
18
|
namespace "expo.modules.ui"
|
|
19
19
|
defaultConfig {
|
|
20
20
|
versionCode 1
|
|
21
|
-
versionName "56.0.
|
|
21
|
+
versionName "56.0.10"
|
|
22
22
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
23
23
|
}
|
|
24
24
|
buildFeatures {
|
|
@@ -458,14 +458,20 @@ class ExpoUIModule : Module() {
|
|
|
458
458
|
val scrollToPage by AsyncFunction<Int>()
|
|
459
459
|
val onCurrentPageChange by Event<HorizontalPagerCurrentPageChangeEvent>()
|
|
460
460
|
val onSettledPageChange by Event<HorizontalPagerSettledPageChangeEvent>()
|
|
461
|
+
val onPageScroll by Event<HorizontalPagerPageScrollEvent>()
|
|
462
|
+
val onScrollInProgressChange by Event<HorizontalPagerScrollInProgressChangeEvent>()
|
|
463
|
+
val onDragInteraction by Event<HorizontalPagerDragInteractionEvent>()
|
|
461
464
|
|
|
462
465
|
Content { props ->
|
|
463
466
|
HorizontalPagerContent(
|
|
464
|
-
props,
|
|
465
|
-
animateScrollToPage,
|
|
466
|
-
scrollToPage,
|
|
467
|
-
{ onCurrentPageChange(it) },
|
|
468
|
-
{ onSettledPageChange(it) }
|
|
467
|
+
props = props,
|
|
468
|
+
animateScrollToPage = animateScrollToPage,
|
|
469
|
+
scrollToPage = scrollToPage,
|
|
470
|
+
onCurrentPageChange = { onCurrentPageChange(it) },
|
|
471
|
+
onSettledPageChange = { onSettledPageChange(it) },
|
|
472
|
+
onPageScroll = { onPageScroll(it) },
|
|
473
|
+
onScrollInProgressChange = { onScrollInProgressChange(it) },
|
|
474
|
+
onDragInteraction = { onDragInteraction(it) }
|
|
469
475
|
)
|
|
470
476
|
}
|
|
471
477
|
}
|
|
@@ -2,6 +2,7 @@ package expo.modules.ui
|
|
|
2
2
|
|
|
3
3
|
import android.view.View
|
|
4
4
|
import android.view.ViewGroup
|
|
5
|
+
import androidx.compose.foundation.interaction.DragInteraction
|
|
5
6
|
import androidx.compose.foundation.pager.HorizontalPager
|
|
6
7
|
import androidx.compose.foundation.pager.rememberPagerState
|
|
7
8
|
import androidx.compose.runtime.Composable
|
|
@@ -23,6 +24,7 @@ import expo.modules.kotlin.views.FunctionalComposableScope
|
|
|
23
24
|
import expo.modules.kotlin.types.Either
|
|
24
25
|
import expo.modules.kotlin.types.OptimizedRecord
|
|
25
26
|
import expo.modules.kotlin.views.OptimizedComposeProps
|
|
27
|
+
import expo.modules.ui.state.WorkletCallback
|
|
26
28
|
|
|
27
29
|
@OptimizedRecord
|
|
28
30
|
data class HorizontalPagerCurrentPageChangeEvent(
|
|
@@ -34,6 +36,22 @@ data class HorizontalPagerSettledPageChangeEvent(
|
|
|
34
36
|
@Field val position: Int = 0
|
|
35
37
|
) : Record
|
|
36
38
|
|
|
39
|
+
@OptimizedRecord
|
|
40
|
+
data class HorizontalPagerPageScrollEvent(
|
|
41
|
+
@Field val currentPage: Int = 0,
|
|
42
|
+
@Field val currentPageOffsetFraction: Float = 0f
|
|
43
|
+
) : Record
|
|
44
|
+
|
|
45
|
+
@OptimizedRecord
|
|
46
|
+
data class HorizontalPagerScrollInProgressChangeEvent(
|
|
47
|
+
@Field val isScrollInProgress: Boolean = false
|
|
48
|
+
) : Record
|
|
49
|
+
|
|
50
|
+
@OptimizedRecord
|
|
51
|
+
data class HorizontalPagerDragInteractionEvent(
|
|
52
|
+
@Field val kind: String = "start"
|
|
53
|
+
) : Record
|
|
54
|
+
|
|
37
55
|
@OptimizedComposeProps
|
|
38
56
|
data class HorizontalPagerProps(
|
|
39
57
|
val initialPage: Int = 0,
|
|
@@ -42,6 +60,7 @@ data class HorizontalPagerProps(
|
|
|
42
60
|
val userScrollEnabled: Boolean = true,
|
|
43
61
|
val reverseLayout: Boolean = false,
|
|
44
62
|
val beyondViewportPageCount: Int = 0,
|
|
63
|
+
val onPageScrollSync: WorkletCallback? = null,
|
|
45
64
|
val modifiers: ModifierList = emptyList()
|
|
46
65
|
) : ComposeProps
|
|
47
66
|
|
|
@@ -51,7 +70,10 @@ fun FunctionalComposableScope.HorizontalPagerContent(
|
|
|
51
70
|
animateScrollToPage: AsyncFunctionHandle<Int>,
|
|
52
71
|
scrollToPage: AsyncFunctionHandle<Int>,
|
|
53
72
|
onCurrentPageChange: (HorizontalPagerCurrentPageChangeEvent) -> Unit,
|
|
54
|
-
onSettledPageChange: (HorizontalPagerSettledPageChangeEvent) -> Unit
|
|
73
|
+
onSettledPageChange: (HorizontalPagerSettledPageChangeEvent) -> Unit,
|
|
74
|
+
onPageScroll: (HorizontalPagerPageScrollEvent) -> Unit,
|
|
75
|
+
onScrollInProgressChange: (HorizontalPagerScrollInProgressChangeEvent) -> Unit,
|
|
76
|
+
onDragInteraction: (HorizontalPagerDragInteractionEvent) -> Unit
|
|
55
77
|
) {
|
|
56
78
|
// Mirror view.size into snapshot state so the outer scope recomposes when
|
|
57
79
|
// children are added/removed. Without this, Compose's pager caches its
|
|
@@ -59,6 +81,9 @@ fun FunctionalComposableScope.HorizontalPagerContent(
|
|
|
59
81
|
// and crashes on scroll past the last index it knew about, because reading
|
|
60
82
|
// view.size — a plain Java property — registers no snapshot dependency.
|
|
61
83
|
val pageCountState = remember { mutableIntStateOf(view.size) }
|
|
84
|
+
// Assumes sole ownership of `view`'s OnHierarchyChangeListener — there is
|
|
85
|
+
// only one slot per ViewGroup, and `onDispose` resets it to null. Safe
|
|
86
|
+
// because `view` is the expo Host's private container.
|
|
62
87
|
DisposableEffect(view) {
|
|
63
88
|
view.setOnHierarchyChangeListener(object : ViewGroup.OnHierarchyChangeListener {
|
|
64
89
|
override fun onChildViewAdded(parent: View?, child: View?) {
|
|
@@ -72,35 +97,91 @@ fun FunctionalComposableScope.HorizontalPagerContent(
|
|
|
72
97
|
onDispose { view.setOnHierarchyChangeListener(null) }
|
|
73
98
|
}
|
|
74
99
|
|
|
75
|
-
|
|
76
|
-
|
|
100
|
+
// Register the imperative handles before the empty-children early return, so
|
|
101
|
+
// in case there ever are JS calls dispatched while `view.size` is still 0, they bind to a handler.
|
|
102
|
+
// `coerceAtLeast(0)` guards against `coerceIn(0, -1)` throwing in that gap.
|
|
77
103
|
val pagerState = rememberPagerState(
|
|
78
|
-
initialPage = props.initialPage.
|
|
104
|
+
initialPage = props.initialPage.coerceAtLeast(0)
|
|
79
105
|
) { pageCountState.intValue }
|
|
80
106
|
val scope = rememberCoroutineScope()
|
|
81
107
|
|
|
82
108
|
// Dispatch into the composition's scope so the scroll runs with Compose's
|
|
83
109
|
// MonotonicFrameClock; .join() lets the JS-side promise await completion.
|
|
110
|
+
// Clamp page indices here because Compose throws on out-of-range values.
|
|
84
111
|
animateScrollToPage.handle { page ->
|
|
85
|
-
|
|
112
|
+
val count = pageCountState.intValue
|
|
113
|
+
if (count > 0) {
|
|
114
|
+
val clamped = page.coerceIn(0, count - 1)
|
|
115
|
+
scope.launch { pagerState.animateScrollToPage(clamped) }.join()
|
|
116
|
+
}
|
|
86
117
|
}
|
|
87
118
|
|
|
88
119
|
scrollToPage.handle { page ->
|
|
89
|
-
|
|
120
|
+
val count = pageCountState.intValue
|
|
121
|
+
if (count > 0) {
|
|
122
|
+
val clamped = page.coerceIn(0, count - 1)
|
|
123
|
+
scope.launch { pagerState.scrollToPage(clamped) }.join()
|
|
124
|
+
}
|
|
90
125
|
}
|
|
91
126
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
LaunchedEffect(pagerState) {
|
|
95
|
-
snapshotFlow { pagerState.currentPage }
|
|
96
|
-
.drop(1)
|
|
97
|
-
.collect { onCurrentPageChange(HorizontalPagerCurrentPageChangeEvent(it)) }
|
|
98
|
-
}
|
|
127
|
+
val pageCount = pageCountState.intValue
|
|
128
|
+
if (pageCount == 0) return
|
|
99
129
|
|
|
130
|
+
// Mirror Compose's PagerState observable fields to JS callbacks. Each
|
|
131
|
+
// state-backed snapshotFlow drops its first emission so we don't echo the
|
|
132
|
+
// initial value back on mount; the interactionSource flow doesn't drop
|
|
133
|
+
// because its emissions are discrete events, not state values.
|
|
100
134
|
LaunchedEffect(pagerState) {
|
|
101
|
-
|
|
102
|
-
.
|
|
103
|
-
|
|
135
|
+
launch {
|
|
136
|
+
snapshotFlow { pagerState.currentPage }
|
|
137
|
+
.drop(1)
|
|
138
|
+
.collect { onCurrentPageChange(HorizontalPagerCurrentPageChangeEvent(it)) }
|
|
139
|
+
}
|
|
140
|
+
launch {
|
|
141
|
+
snapshotFlow { pagerState.settledPage }
|
|
142
|
+
.drop(1)
|
|
143
|
+
.collect { onSettledPageChange(HorizontalPagerSettledPageChangeEvent(it)) }
|
|
144
|
+
}
|
|
145
|
+
launch {
|
|
146
|
+
snapshotFlow {
|
|
147
|
+
pagerState.currentPage to pagerState.currentPageOffsetFraction
|
|
148
|
+
}
|
|
149
|
+
.drop(1)
|
|
150
|
+
.collect { (currentPage, fraction) ->
|
|
151
|
+
// Mutually exclusive: the JS wrapper only wires one path at a time.
|
|
152
|
+
// Skipping the regular event when a worklet is attached avoids the
|
|
153
|
+
// per-frame Record allocation + async JS-thread event dispatch.
|
|
154
|
+
val sync = props.onPageScrollSync
|
|
155
|
+
if (sync != null) {
|
|
156
|
+
sync.invoke(currentPage, fraction)
|
|
157
|
+
} else {
|
|
158
|
+
onPageScroll(
|
|
159
|
+
HorizontalPagerPageScrollEvent(
|
|
160
|
+
currentPage = currentPage,
|
|
161
|
+
currentPageOffsetFraction = fraction
|
|
162
|
+
)
|
|
163
|
+
)
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
launch {
|
|
168
|
+
snapshotFlow { pagerState.isScrollInProgress }
|
|
169
|
+
.drop(1)
|
|
170
|
+
.collect {
|
|
171
|
+
onScrollInProgressChange(HorizontalPagerScrollInProgressChangeEvent(isScrollInProgress = it))
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
launch {
|
|
175
|
+
pagerState.interactionSource.interactions.collect { interaction ->
|
|
176
|
+
val kind = when (interaction) {
|
|
177
|
+
is DragInteraction.Start -> "start"
|
|
178
|
+
is DragInteraction.Stop -> "stop"
|
|
179
|
+
is DragInteraction.Cancel -> "cancel"
|
|
180
|
+
else -> return@collect
|
|
181
|
+
}
|
|
182
|
+
onDragInteraction(HorizontalPagerDragInteractionEvent(kind = kind))
|
|
183
|
+
}
|
|
184
|
+
}
|
|
104
185
|
}
|
|
105
186
|
|
|
106
187
|
val contentPadding = props.contentPadding.toPaddingValues()
|
|
@@ -13,6 +13,7 @@ import com.google.android.material.color.utilities.MaterialDynamicColors
|
|
|
13
13
|
import com.google.android.material.color.utilities.SchemeTonalSpot
|
|
14
14
|
import expo.modules.kotlin.records.Field
|
|
15
15
|
import expo.modules.kotlin.records.Record
|
|
16
|
+
import expo.modules.kotlin.types.OptimizedRecord
|
|
16
17
|
import expo.modules.ui.ExpoColorScheme
|
|
17
18
|
|
|
18
19
|
/**
|
|
@@ -21,6 +22,7 @@ import expo.modules.ui.ExpoColorScheme
|
|
|
21
22
|
*/
|
|
22
23
|
internal val isDynamicColorSupported: Boolean = Build.VERSION.SDK_INT >= Build.VERSION_CODES.S
|
|
23
24
|
|
|
25
|
+
@OptimizedRecord
|
|
24
26
|
internal class MaterialColorsOptions : Record {
|
|
25
27
|
@Field val scheme: ExpoColorScheme? = null
|
|
26
28
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import './index.fx';
|
|
2
|
+
export { useNativeState, type ObservableState } from './useNativeState';
|
|
3
|
+
export { useWorkletProp } from './useWorkletProp';
|
|
4
|
+
export { worklets } from './optionalWorklets';
|
|
5
|
+
export { getStateId } from './utils';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/State/index.ts"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;AAEpB,OAAO,EAAE,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type PagerViewProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Drop-in replacement for `react-native-pager-view` on Android.
|
|
4
|
+
* Renders a Jetpack Compose `HorizontalPager`.
|
|
5
|
+
*/
|
|
6
|
+
export declare function PagerView(props: PagerViewProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=PagerView.android.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PagerView.android.d.ts","sourceRoot":"","sources":["../../../src/community/pager-view/PagerView.android.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAmB,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAO/D;;;GAGG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,2CA+G9C"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PagerViewProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* A drop-in replacement for `react-native-pager-view`. Renders a horizontally
|
|
4
|
+
* paged view backed by Jetpack Compose's `HorizontalPager` on Android and
|
|
5
|
+
* SwiftUI on iOS. Each child is treated as a separate page.
|
|
6
|
+
*/
|
|
7
|
+
export declare function PagerView(_props: PagerViewProps): never;
|
|
8
|
+
//# sourceMappingURL=PagerView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PagerView.d.ts","sourceRoot":"","sources":["../../../src/community/pager-view/PagerView.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,KAAK,CAIvD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type PagerViewProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Drop-in replacement for `react-native-pager-view` on iOS.
|
|
4
|
+
*
|
|
5
|
+
* Renders a SwiftUI `ScrollView` with paging behavior. Scroll position is the
|
|
6
|
+
* single source of truth: an `ObservableState` bound through the
|
|
7
|
+
* `scrollPosition` modifier drives initial placement, user-swipe writeback,
|
|
8
|
+
* and imperative `setPage` / `setPageWithoutAnimation`. The animated path
|
|
9
|
+
* routes the write through `withAnimation`; if `react-native-worklets` isn't
|
|
10
|
+
* installed, `setPage` falls back to a non-animated jump. Requires iOS 17+.
|
|
11
|
+
* Continuous progress (`onPageScroll`) and scroll state
|
|
12
|
+
* (`onPageScrollStateChanged`) events require iOS 18+.
|
|
13
|
+
*/
|
|
14
|
+
export declare function PagerView(props: PagerViewProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=PagerView.ios.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PagerView.ios.d.ts","sourceRoot":"","sources":["../../../src/community/pager-view/PagerView.ios.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAmB,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAiC/D;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,2CA+J9C"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { PagerViewProps, PagerViewRef, PagerViewOnPageScrollEventData, PagerViewOnPageSelectedEventData, PageScrollStateChangedEventData, PagerViewOnPageScrollEvent, PagerViewOnPageSelectedEvent, PageScrollStateChangedEvent, } from './types';
|
|
2
|
+
export { PagerView, PagerView as default } from './PagerView';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/community/pager-view/index.tsx"],"names":[],"mappings":"AAAA,YAAY,EACV,cAAc,EACd,YAAY,EACZ,8BAA8B,EAC9B,gCAAgC,EAChC,+BAA+B,EAC/B,0BAA0B,EAC1B,4BAA4B,EAC5B,2BAA2B,GAC5B,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,SAAS,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import type { ReactNode, Ref } from 'react';
|
|
2
|
+
import type { NativeSyntheticEvent, ViewProps } from 'react-native';
|
|
3
|
+
/**
|
|
4
|
+
* Event payload for `onPageScroll`. Mirrors the upstream
|
|
5
|
+
* `react-native-pager-view` shape.
|
|
6
|
+
*/
|
|
7
|
+
export type PagerViewOnPageScrollEventData = Readonly<{
|
|
8
|
+
position: number;
|
|
9
|
+
offset: number;
|
|
10
|
+
}>;
|
|
11
|
+
/**
|
|
12
|
+
* Event payload for `onPageSelected`. Mirrors the upstream
|
|
13
|
+
* `react-native-pager-view` shape.
|
|
14
|
+
*/
|
|
15
|
+
export type PagerViewOnPageSelectedEventData = Readonly<{
|
|
16
|
+
position: number;
|
|
17
|
+
}>;
|
|
18
|
+
/**
|
|
19
|
+
* Event payload for `onPageScrollStateChanged`. Mirrors the upstream
|
|
20
|
+
* `react-native-pager-view` shape.
|
|
21
|
+
*/
|
|
22
|
+
export type PageScrollStateChangedEventData = Readonly<{
|
|
23
|
+
pageScrollState: 'idle' | 'dragging' | 'settling';
|
|
24
|
+
}>;
|
|
25
|
+
export type PagerViewOnPageScrollEvent = NativeSyntheticEvent<PagerViewOnPageScrollEventData>;
|
|
26
|
+
export type PagerViewOnPageSelectedEvent = NativeSyntheticEvent<PagerViewOnPageSelectedEventData>;
|
|
27
|
+
export type PageScrollStateChangedEvent = NativeSyntheticEvent<PageScrollStateChangedEventData>;
|
|
28
|
+
/**
|
|
29
|
+
* Wraps a payload as `NativeSyntheticEvent`. We only populate `nativeEvent`
|
|
30
|
+
* since our consumers (mirroring upstream `react-native-pager-view`) read
|
|
31
|
+
* only `event.nativeEvent.X`; the unset SyntheticEvent fields would never
|
|
32
|
+
* be observed in practice.
|
|
33
|
+
*/
|
|
34
|
+
export declare const wrapNativeEvent: <T>(nativeEvent: T) => NativeSyntheticEvent<T>;
|
|
35
|
+
/**
|
|
36
|
+
* Props for the `PagerView` component.
|
|
37
|
+
* Compatible with `react-native-pager-view`.
|
|
38
|
+
*/
|
|
39
|
+
export type PagerViewProps = ViewProps & {
|
|
40
|
+
/**
|
|
41
|
+
* Ref handle exposing imperative `setPage`, `setPageWithoutAnimation`,
|
|
42
|
+
* and `setScrollEnabled` methods.
|
|
43
|
+
*/
|
|
44
|
+
ref?: Ref<PagerViewRef>;
|
|
45
|
+
/**
|
|
46
|
+
* Index of the page that is initially selected. Read **once** on mount;
|
|
47
|
+
* later changes are ignored. To navigate after mount, call
|
|
48
|
+
* `ref.setPage()` or `ref.setPageWithoutAnimation()`.
|
|
49
|
+
* @default 0
|
|
50
|
+
*/
|
|
51
|
+
initialPage?: number;
|
|
52
|
+
/**
|
|
53
|
+
* Whether the user can swipe between pages.
|
|
54
|
+
* @default true
|
|
55
|
+
*/
|
|
56
|
+
scrollEnabled?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Layout direction for paging.
|
|
59
|
+
* @default 'ltr'
|
|
60
|
+
* @platform android
|
|
61
|
+
*/
|
|
62
|
+
layoutDirection?: 'ltr' | 'rtl';
|
|
63
|
+
/**
|
|
64
|
+
* Number of pages kept off-screen on each side of the visible page.
|
|
65
|
+
* @platform android
|
|
66
|
+
*/
|
|
67
|
+
offscreenPageLimit?: number;
|
|
68
|
+
/**
|
|
69
|
+
* Pixels of padding between pages.
|
|
70
|
+
* @platform android
|
|
71
|
+
*/
|
|
72
|
+
pageMargin?: number;
|
|
73
|
+
/**
|
|
74
|
+
* Fires continuously while a swipe is in progress. The event's `position`
|
|
75
|
+
* is the index of the leading visible page; `offset` is the fractional
|
|
76
|
+
* progress toward the next page in the `[0, 1)` range.
|
|
77
|
+
*
|
|
78
|
+
* **iOS 18+ only.**
|
|
79
|
+
*/
|
|
80
|
+
onPageScroll?: (event: PagerViewOnPageScrollEvent) => void;
|
|
81
|
+
/**
|
|
82
|
+
* Fires when a page is fully selected. The event's `position` is the
|
|
83
|
+
* index of the new page.
|
|
84
|
+
*/
|
|
85
|
+
onPageSelected?: (event: PagerViewOnPageSelectedEvent) => void;
|
|
86
|
+
/**
|
|
87
|
+
* Fires when the scroll state changes between `idle`, `dragging`,
|
|
88
|
+
* and `settling`.
|
|
89
|
+
*
|
|
90
|
+
* **iOS 18+ only.**
|
|
91
|
+
*/
|
|
92
|
+
onPageScrollStateChanged?: (event: PageScrollStateChangedEvent) => void;
|
|
93
|
+
/**
|
|
94
|
+
* Pages of the pager. Each child is treated as a separate page and
|
|
95
|
+
* stretched to fill the pager. Each child should have a stable `key`.
|
|
96
|
+
*/
|
|
97
|
+
children?: ReactNode;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Ref handle for the `PagerView` component.
|
|
101
|
+
* Compatible with `react-native-pager-view`.
|
|
102
|
+
*/
|
|
103
|
+
export type PagerViewRef = {
|
|
104
|
+
/**
|
|
105
|
+
* Animate the pager to the given page index. Out-of-range indices are
|
|
106
|
+
* silently ignored. On iOS the animation requires `react-native-worklets`;
|
|
107
|
+
* without it, `setPage` falls back to a non-animated jump.
|
|
108
|
+
*/
|
|
109
|
+
setPage: (selectedPage: number) => void;
|
|
110
|
+
/**
|
|
111
|
+
* Jump to the given page index without an animation.
|
|
112
|
+
*/
|
|
113
|
+
setPageWithoutAnimation: (selectedPage: number) => void;
|
|
114
|
+
/**
|
|
115
|
+
* Imperatively enable or disable user scrolling — convenient when
|
|
116
|
+
* toggling from a non-React context like a ref-based gesture handler.
|
|
117
|
+
*
|
|
118
|
+
* > **Note:** If the `scrollEnabled` prop is also provided, subsequent
|
|
119
|
+
* > prop changes win and reset the value set imperatively. To use the
|
|
120
|
+
* > imperative path exclusively, omit the prop.
|
|
121
|
+
*
|
|
122
|
+
* > Unlike upstream `react-native-pager-view` (which calls UIManager
|
|
123
|
+
* > directly), this triggers a re-render of `PagerView` so the new
|
|
124
|
+
* > flag flows through to the native view via props.
|
|
125
|
+
*/
|
|
126
|
+
setScrollEnabled: (scrollEnabled: boolean) => void;
|
|
127
|
+
};
|
|
128
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/community/pager-view/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpE;;;GAGG;AACH,MAAM,MAAM,8BAA8B,GAAG,QAAQ,CAAC;IACpD,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,gCAAgC,GAAG,QAAQ,CAAC;IACtD,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,+BAA+B,GAAG,QAAQ,CAAC;IACrD,eAAe,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,CAAC;CACnD,CAAC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,oBAAoB,CAAC,8BAA8B,CAAC,CAAC;AAC9F,MAAM,MAAM,4BAA4B,GAAG,oBAAoB,CAAC,gCAAgC,CAAC,CAAC;AAClG,MAAM,MAAM,2BAA2B,GAAG,o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/segmented-control/vendor/SegmentsSeparators.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,aAAa,GACd,EAAE;IACD,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,
|
|
1
|
+
{"version":3,"file":"SegmentsSeparators.d.ts","sourceRoot":"","sources":["../../../../src/community/segmented-control/vendor/SegmentsSeparators.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,aAAa,GACd,EAAE;IACD,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,2CAiBA"}
|
|
@@ -13,6 +13,11 @@ export type HorizontalPagerHandle = {
|
|
|
13
13
|
*/
|
|
14
14
|
scrollToPage: (page: number) => Promise<void>;
|
|
15
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* Kind of drag interaction reported by `onDragInteraction`. Mirrors Compose's
|
|
18
|
+
* `DragInteraction.Start` / `DragInteraction.Stop` / `DragInteraction.Cancel`.
|
|
19
|
+
*/
|
|
20
|
+
export type HorizontalPagerDragInteraction = 'start' | 'stop' | 'cancel';
|
|
16
21
|
export type HorizontalPagerProps = {
|
|
17
22
|
/**
|
|
18
23
|
* Imperative handle for programmatic navigation. Mirrors the methods on
|
|
@@ -36,6 +41,28 @@ export type HorizontalPagerProps = {
|
|
|
36
41
|
* swipe or programmatic scroll has fully settled.
|
|
37
42
|
*/
|
|
38
43
|
onSettledPageChange?: (page: number) => void;
|
|
44
|
+
/**
|
|
45
|
+
* Fires continuously while a swipe is in progress. Mirrors Compose's
|
|
46
|
+
* `PagerState.currentPage` and `currentPageOffsetFraction` — the latter is
|
|
47
|
+
* the signed fractional offset from `currentPage`, in the `[-0.5, 0.5]` range.
|
|
48
|
+
*
|
|
49
|
+
* If the callback is marked with the `'worklet'` directive, it runs
|
|
50
|
+
* synchronously on the UI thread; otherwise it is delivered asynchronously
|
|
51
|
+
* as a regular JS event.
|
|
52
|
+
*/
|
|
53
|
+
onPageScroll?: (currentPage: number, currentPageOffsetFraction: number) => void;
|
|
54
|
+
/**
|
|
55
|
+
* Fires when Compose's `PagerState.isScrollInProgress` toggles — true while
|
|
56
|
+
* the pager is being dragged or animating to a snap target, false once it
|
|
57
|
+
* has settled.
|
|
58
|
+
*/
|
|
59
|
+
onScrollInProgressChange?: (isScrollInProgress: boolean) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Fires for each drag interaction emitted by `PagerState.interactionSource`.
|
|
62
|
+
* Combine with `onScrollInProgressChange` to distinguish user dragging from
|
|
63
|
+
* fling/snap-settling.
|
|
64
|
+
*/
|
|
65
|
+
onDragInteraction?: (kind: HorizontalPagerDragInteraction) => void;
|
|
39
66
|
/**
|
|
40
67
|
* Spacing between pages in dp.
|
|
41
68
|
* @default 0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/HorizontalPager/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/HorizontalPager/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGjC,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGvD,YAAY,EAAE,mBAAmB,EAAE,CAAC;AAEpC,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;OAGG;IACH,mBAAmB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrD;;OAEG;IACH,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,C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
53
|
ignoreSafeAreaKeyboardInsets?: boolean;
|
|
54
54
|
children: React.ReactNode;
|
|
55
55
|
style?: StyleProp<ViewStyle>;
|
|
56
|
+
pointerEvents?: 'box-none' | 'none' | 'box-only' | 'auto';
|
|
56
57
|
} & PrimitiveBaseProps;
|
|
57
58
|
export declare function Host(props: HostProps): import("react/jsx-runtime").JSX.Element;
|
|
58
59
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Host/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,SAAS,EAGf,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAEpD,MAAM,MAAM,SAAS,GAAG;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,UAAU,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IAEvE;;;OAGG;IACH,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,KAAK,IAAI,CAAC;IAEtF;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;IAErC;;;;;OAKG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAE9B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC;IAEvB;;;OAGG;IACH,eAAe,CAAC,EAAE,aAAa,GAAG,aAAa,CAAC;IAEhD;;;;OAIG;IACH,4BAA4B,CAAC,EAAE,OAAO,CAAC;IAEvC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Host/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,SAAS,EAGf,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAEpD,MAAM,MAAM,SAAS,GAAG;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,UAAU,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IAEvE;;;OAGG;IACH,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,KAAK,IAAI,CAAC;IAEtF;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;IAErC;;;;;OAKG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAE9B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC;IAEvB;;;OAGG;IACH,eAAe,CAAC,EAAE,aAAa,GAAG,aAAa,CAAC;IAEhD;;;;OAIG;IACH,4BAA4B,CAAC,EAAE,OAAO,CAAC;IAEvC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,aAAa,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC;CAC3D,GAAG,kBAAkB,CAAC;AAcvB,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,2CAuCpC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ColorValue } from 'react-native';
|
|
2
|
-
import type
|
|
2
|
+
import { type ObservableState } from '../../State';
|
|
3
3
|
import { type ModifierConfig } from '../../types';
|
|
4
4
|
/**
|
|
5
5
|
* Common props shared by loading indicator variants.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/LoadingIndicator/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/LoadingIndicator/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC;;;OAGG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC1C;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC9B,CAAC;AAsCF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,6DAA0D,CAAC;AAMxF,MAAM,MAAM,8BAA8B,GAAG,4BAA4B,GAAG;IAC1E;;OAEG;IACH,cAAc,CAAC,EAAE,UAAU,CAAC;CAC7B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,+DAC4D,CAAC;AAInG,OAAO,EAAE,KAAK,eAAe,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/SyncSwitch/index.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/SyncSwitch/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,KAAK,eAAe,EAAkB,MAAM,aAAa,CAAC;AAC/E,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,IAAI,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IAC/B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC9B,CAAC;AAYF;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,2CAahD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Ref } from 'react';
|
|
2
2
|
import type { ColorValue } from 'react-native';
|
|
3
|
-
import type
|
|
3
|
+
import { type ObservableState } from '../../State';
|
|
4
4
|
import type { ModifierConfig } from '../../types';
|
|
5
5
|
/**
|
|
6
6
|
* Can be used for imperatively focusing and setting text/selection on the `TextField` component.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/TextField/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/TextField/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAc,KAAK,eAAe,EAA4B,MAAM,aAAa,CAAC;A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,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;gCAIrB;QAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;;AAwC5D,OAAO,EAAE,kBAAkB,IAAI,SAAS,EAAE,0BAA0B,IAAI,iBAAiB,EAAE,CAAC;AAG5F,OAAO,EAAE,KAAK,eAAe,EAAE,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import '../State/index.fx';
|
|
2
1
|
import './MaterialSymbolsAssetsTransformer.fx';
|
|
3
2
|
export * from './AlertDialog';
|
|
4
3
|
export * from './Badge';
|
|
@@ -48,7 +47,7 @@ export * from './Box';
|
|
|
48
47
|
export * from './Row';
|
|
49
48
|
export * from './Column';
|
|
50
49
|
export * from './FlowRow';
|
|
51
|
-
export { useNativeState } from '../State
|
|
50
|
+
export { useNativeState } from '../State';
|
|
52
51
|
export type { ViewEvent } from '../types';
|
|
53
52
|
export type { PrimitiveBaseProps } from './layout-types';
|
|
54
53
|
//# sourceMappingURL=index.d.ts.map
|