Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: content not visible on js version
  • Loading branch information
Saadnajmi committed Apr 18, 2024
commit c2527b9476a63c21fe2b27e2c99f15b43f1e9d45
28 changes: 14 additions & 14 deletions js/SegmentedControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,20 @@ const SegmentedControl = ({
selectedIndex={selectedIndex}
/>
)}
{selectedIndex != null && segmentWidth ? (
<Animated.View
style={[
styles.slider,
{
transform: [{translateX: animation}],
width: segmentWidth - 4,
zIndex: -1,
backgroundColor:
tintColor || (colorScheme === 'dark' ? '#636366' : 'white'),
},
]}
/>
) : null}
<View style={styles.segmentsContainer}>
{values &&
values.map((value, index) => {
Expand All @@ -117,20 +131,6 @@ const SegmentedControl = ({
);
})}
</View>
{selectedIndex != null && segmentWidth ? (
<Animated.View
style={[
styles.slider,
{
transform: [{translateX: animation}],
width: segmentWidth - 4,
zIndex: -1,
backgroundColor:
tintColor || (colorScheme === 'dark' ? '#636366' : 'white'),
},
]}
/>
) : null}
</View>
);
};
Expand Down