You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(scroll): replace useHideOnScroll with ScrollToHideProvider for better performance
- Add new ScrollToHideProvider context for scroll-based animations
- Implement useScrollToHide and useScrollValues hooks
- Add animated scroll components (AnimatedVScroll, AnimatedHScroll, AnimatedVList, AnimatedHList)
- Update documentation with new scroll-to-hide implementation
- Remove deprecated useHideOnScroll hook and related types
- Bump rnc-theme version to 0.1.0
|`scrollToHideProps`| <ahref='/api/provider#scrolltohideprops'>`ScrollToHideProps`</a> |`undefined`| Configuration for scroll-to-hide behavior |
19
20
20
21
### BottomSheetProps
21
22
@@ -28,18 +29,25 @@ Provider component is used to wrap your app content and provide the theme contex
28
29
|`lineBackgroundColor`| <ahref='https://reactnative.dev/docs/view-style-props#backgroundcolor'>`ViewStyle['backgroundColor']`</a> | No |`undefined`| Color of the drag indicator line |
29
30
|`borderTopLeftRadius`| <ahref='https://reactnative.dev/docs/view-style-props#borderradius'>`ViewStyle['borderTopLeftRadius']`</a> | No |`undefined`| Top left border radius |
30
31
|`borderTopRightRadius`| <ahref='https://reactnative.dev/docs/view-style-props#borderradius'>`ViewStyle['borderTopRightRadius']`</a> | No |`undefined`| Top right border radius |
31
-
|`isBorderBottomTitleVisible`|`boolean`|`false`| Whether to show border below title |
32
-
|`onStateChange`|`(state: boolean) => void`|`undefined`| Callback when bottom sheet state changes |
33
-
|`variant`|`'scroll' \| 'flatlist'`|`'scroll'`| Type of scrollable content in bottom sheet |
34
-
|`flatListProps`|`Omit<FlatListProps<T>, 'ref'>`|`undefined`| Props for FlatList when variant is 'flatlist' |
32
+
|`isBorderBottomTitleVisible`|`boolean`|No |`false`| Whether to show border below title |
33
+
|`onStateChange`|`(state: boolean) => void`|No |`undefined`| Callback when bottom sheet state changes |
34
+
|`variant`|`'scroll' \| 'flatlist'`|No |`'scroll'`| Type of scrollable content in bottom sheet |
35
+
|`flatListProps`|`Omit<FlatListProps<T>, 'ref'>`|No |`undefined`| Props for FlatList when variant is 'flatlist' |
35
36
36
37
### ToastConfig
37
38
38
39
| Property | Type | Default | Description |
39
40
|----------|------|---------|-------------|
40
-
|`position`|`'top' or 'bottom'`|`'bottom'`| Position of the toast notifications |
41
+
|`position`|`'top' \| 'bottom'`|`'bottom'`| Position of the toast notifications |
41
42
|`maxToasts`|`number`|`5`| Maximum number of toast notifications to show at once |
0 commit comments