Segment
Last updated
Last updated
Segments are best used as an alternative for tabs.
View full example: Segment Example
Segment custom
Property
Default
Option
Description
activeOpacity
1
number
Determines what the opacity of the wrapped view should be when touch is active
colorActive
#fff
string
Color text when active
bgColorActive
#3e50fa
string
Background color when active
colorUnactive
#3e50fa
string
Color text when unactive
defaultValue
0
number
Default value tabs
onChange
-
function
Return index tab when change