Warning with shadowStyle
alex-maxime opened this issue · 1 comments
alex-maxime commented
Hello, i have the following warning when using the component.
Warning: Failed prop type: SegmentedControl: prop type shadowStyle
is invalid; it must be a function, usually from the prop-types
package, but received undefined
.
<SegmentedControl
tabs={getTabsLabel()}
onChange={onChange}
currentIndex={index}
activeSegmentBackgroundColor={Colors.primary}
paddingVertical={8}
width={initialLayout.width - 16}
containerStyle={{
marginVertical: 8,
marginHorizontal: 8
}}
textStyle={{
fontSize: 12,
fontFamily: 'RobotoRegular'
}}
/>
Karthik-B-06 commented
@Alex237 Fixed the warning. Check out the new version. 🎉