Skip to content

Commit e3e5edc

Browse files
chore: update readme
1 parent e12903a commit e3e5edc

File tree

1 file changed

+49
-49
lines changed

1 file changed

+49
-49
lines changed

README.md

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -853,55 +853,6 @@ export interface Tab<T, Y> extends Omit<TouchableOpacityProps, 'onPress'> {
853853
}
854854
```
855855

856-
<details><summary>Primary Tabs</summary>
857-
<br />
858-
859-
**Properties**
860-
861-
| name | description | type | default |
862-
| ------ | ------ | ------ | ---- |
863-
| tabs | required | Tab<T, Y>[] | - |
864-
| 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 | - |
865-
| scrollAnim | From 0 to 1 / tabs.lenght. Make the indicator responsive to scrolling. See more in the bottom of Tabs section. | SharedValue<number> | - |
866-
| badgeSize | - | SMALL or BIG | BIG |
867-
| animConfig | - | (routeName: T) => void | - |
868-
| tabIconProps | - | Y | - |
869-
| tabStyle | - | ViewStyle | - |
870-
| badgeStyle | - | ViewStyle | - |
871-
| indicatorStyle | - | ViewStyle | - |
872-
| indicatorContainerStyle | - | ViewStyle | - |
873-
| tabsContainerStyle | - | ViewStyle | - |
874-
| tabInnerContentStyle | - | ViewStyle | - |
875-
| tabTitleStyle | - | TextStyle | - |
876-
877-
![primary tabs](https://ik.imagekit.io/Computools/rn-material-components/primary_tabs.gif?updatedAt=1735922886826)
878-
![primary tabs with badges](https://ik.imagekit.io/Computools/rn-material-components/secondary_tabs_with_badges.png?updatedAt=1735922619925)
879-
880-
</details>
881-
<details><summary>Secondary Tabs</summary>
882-
<br />
883-
884-
**Properties**
885-
886-
| name | description | type | default |
887-
| ------ | ------ | ------ | ---- |
888-
| tabs | required | Tab<T, Y>[] | - |
889-
| 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 | - |
890-
| scrollAnim | From 0 to 1 / tabs.lenght. Make the indicator responsive to scrolling. See more in the bottom of Tabs section. | SharedValue<number> | - |
891-
| badgeSize | - | SMALL or BIG | BIG |
892-
| animConfig | - | (routeName: T) => void | - |
893-
| tabIconProps | - | Y | - |
894-
| tabStyle | - | ViewStyle | - |
895-
| badgeStyle | - | ViewStyle | - |
896-
| indicatorStyle | - | ViewStyle | - |
897-
| tabsContainerStyle | - | ViewStyle | - |
898-
| tabInnerContentStyle | - | ViewStyle | - |
899-
| tabTitleStyle | - | TextStyle | - |
900-
901-
![secondary tabs](https://ik.imagekit.io/Computools/rn-material-components/secondart_tabs.gif?updatedAt=1735922886638)
902-
![secondary tabs with badges](https://ik.imagekit.io/Computools/rn-material-components/primary_tabs_with_badges.png?updatedAt=1735922619944)
903-
904-
</details>
905856
<br />
906857

907858
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.
@@ -955,6 +906,55 @@ const ParentComponent = () => {
955906
};
956907
```
957908

909+
<details><summary>Primary Tabs</summary>
910+
<br />
911+
912+
**Properties**
913+
914+
| name | description | type | default |
915+
| ------ | ------ | ------ | ---- |
916+
| tabs | required | Tab<T, Y>[] | - |
917+
| 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> | - |
919+
| badgeSize | - | SMALL or BIG | BIG |
920+
| animConfig | - | (routeName: T) => void | - |
921+
| tabIconProps | - | Y | - |
922+
| tabStyle | - | ViewStyle | - |
923+
| badgeStyle | - | ViewStyle | - |
924+
| indicatorStyle | - | ViewStyle | - |
925+
| indicatorContainerStyle | - | ViewStyle | - |
926+
| tabsContainerStyle | - | ViewStyle | - |
927+
| tabInnerContentStyle | - | ViewStyle | - |
928+
| tabTitleStyle | - | TextStyle | - |
929+
930+
![primary tabs](https://ik.imagekit.io/Computools/rn-material-components/primary_tabs.gif?updatedAt=1735922886826)
931+
![primary tabs with badges](https://ik.imagekit.io/Computools/rn-material-components/secondary_tabs_with_badges.png?updatedAt=1735922619925)
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> | - |
944+
| badgeSize | - | SMALL or BIG | BIG |
945+
| animConfig | - | (routeName: T) => void | - |
946+
| tabIconProps | - | Y | - |
947+
| tabStyle | - | ViewStyle | - |
948+
| badgeStyle | - | ViewStyle | - |
949+
| indicatorStyle | - | ViewStyle | - |
950+
| tabsContainerStyle | - | ViewStyle | - |
951+
| tabInnerContentStyle | - | ViewStyle | - |
952+
| tabTitleStyle | - | TextStyle | - |
953+
954+
![secondary tabs](https://ik.imagekit.io/Computools/rn-material-components/secondart_tabs.gif?updatedAt=1735922886638)
955+
![secondary tabs with badges](https://ik.imagekit.io/Computools/rn-material-components/primary_tabs_with_badges.png?updatedAt=1735922619944)
956+
957+
</details>
958958
</details>
959959
</details>
960960
<details><summary>Sheets</summary>

0 commit comments

Comments
 (0)