File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,20 @@ const SegmentedControl = ({
9393 selectedIndex = { selectedIndex }
9494 />
9595 ) }
96+ { selectedIndex != null && segmentWidth ? (
97+ < Animated . View
98+ style = { [
99+ styles . slider ,
100+ {
101+ transform : [ { translateX : animation } ] ,
102+ width : segmentWidth - 4 ,
103+ zIndex : - 1 ,
104+ backgroundColor :
105+ tintColor || ( colorScheme === 'dark' ? '#636366' : 'white' ) ,
106+ } ,
107+ ] }
108+ />
109+ ) : null }
96110 < View style = { styles . segmentsContainer } >
97111 { values &&
98112 values . map ( ( value , index ) => {
@@ -117,20 +131,6 @@ const SegmentedControl = ({
117131 ) ;
118132 } ) }
119133 </ View >
120- { selectedIndex != null && segmentWidth ? (
121- < Animated . View
122- style = { [
123- styles . slider ,
124- {
125- transform : [ { translateX : animation } ] ,
126- width : segmentWidth - 4 ,
127- zIndex : - 1 ,
128- backgroundColor :
129- tintColor || ( colorScheme === 'dark' ? '#636366' : 'white' ) ,
130- } ,
131- ] }
132- />
133- ) : null }
134134 </ View >
135135 ) ;
136136} ;
You can’t perform that action at this time.
0 commit comments