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
React Native Segmented Control for both iOS, Android and Web 😎
@@ -23,34 +23,30 @@ yarn add rn-segmented-control
23
23
24
24
## :arrows_counterclockwise: Dependencies
25
25
26
-
Make sure you have [React Native Reanimated](https://docs.swmansion.com/react-native-reanimated/docs) and [React Native Gesture Handler](https://docs.swmansion.com/react-native-gesture-handler/docs/) installed and configured.
26
+
Make sure you have [React Native Reanimated](https://docs.swmansion.com/react-native-reanimated/docs) and [React Native Gesture Handler](https://docs.swmansion.com/react-native-gesture-handler/docs/) installed and configured.
27
27
28
28
## :wrench: Props
29
29
30
-
| Name | Description | Required | Type | Default |
| segments | An array of labels for segments | YES | Array |[]|
33
-
| currentIndex | Index for the currently active segment | YES | Number | 0 |
34
-
| onChange | A callback Function with pressed segment index | YES | Function | () => {} |
35
-
| badgeCount | An array of badge value for segments. | NO | Array |[]|
36
-
| isRTL | Controls the toggle animation direction | NO | Boolean | false |
37
-
| containerMargin | The value used to determine the width | NO | Number | 16 |
38
-
| activeTextStyle | active text styles | NO | TextStyle | {} |
39
-
| inactiveTextStyle | inactive text styles. | NO | ViewStyle | {} |
40
-
| segmentedControlWrapper | Style object for the Segmented Control. | NO | ViewStyle. | {} |
41
-
| pressableWrapper | Style object for the Pressable Container | NO | ViewStyle. | {} |
42
-
| tileStyle | Style object for the Absolute positioned tile | NO | ViewStyle | {} |
43
-
44
-
45
-
> :warning:`segmentedControlWrapper` accepts all View styles and does override some default styles provided by the package. Make sure you use it properly :)
46
-
47
-
> :warning:`activeTextStyle` and `inactiveTextStyle` accepts all Text styles and overrides the defaults. Make sure you use it properly :)
48
-
49
-
> :warning:`tileStyle` accepts all View styles and does override some default styles provided by the package. Make sure you use it properly :)
50
-
51
-
> :information_source: To apply your own `shadowStyles` use the tileStyle prop
52
-
53
-
30
+
| Name | Description | Required | Type | Default |
0 commit comments