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
| scrollDirection | 'UP' or 'DOWN'. Use this propert to hide/show NavBar on scroll. | ScrollDirection | - |
781
+
| containerStyle | - | ViewStyle | false |
782
+
783
+
```
784
+
export interface NavBarRoute<T, Y> {
785
+
name: T;
786
+
icon: React.FC<Y>;
787
+
selectedIcon: React.FC<Y>;
788
+
789
+
label?: string;
790
+
badge?: string;
791
+
showBadge?: boolean;
792
+
badgeSize?: BadgeSize;
793
+
iconProps?: Y;
794
+
}
795
+
```
796
+
797
+
To enable animation on scroll use ScrollView from Animated, create a shared value with a ScrollDirection value, scrollContext with a number value and manage them onScroll.
To make the indicator responsive to scrolling, handle the scrollAnim state in the parent component and pass it as a prop to the Tabs component. This allows for seamless synchronization between the scrolling behavior and the indicator movement.
| activeTab | The active tab is managed through the state. Pass the activeTab prop to enable the active tab indicator animation when scrollAnim is not provided. | T | - |
918
+
| scrollAnim | The indicator progresses from 0 to 1 / tabs.length. To make the indicator responsive to scrolling, refer to the "Tabs" section above for more details. | SharedValue<number> | - |

932
+
933
+
</details>
934
+
<details><summary>Secondary Tabs</summary>
935
+
<br />
936
+
937
+
**Properties**
938
+
939
+
| name | description | type | default |
940
+
| ------ | ------ | ------ | ---- |
941
+
| tabs | required | Tab<T, Y>[]| - |
942
+
| activeTab | The active tab is managed through the state. Pass the activeTab prop to enable the active tab indicator animation when scrollAnim is not provided. | T | - |
943
+
| scrollAnim | The indicator progresses from 0 to 1 / tabs.length. To make the indicator responsive to scrolling, refer to the "Tabs" section above for more details. | SharedValue<number> | - |
Copy file name to clipboardExpand all lines: src/app-bars/bottom-app-bar/animated-bottom-app-bar-action-button/AnimatedBottomAppBarActionButton.component.tsx
0 commit comments