Karthik-B-06/react-native-segmented-control

Warning with shadowStyle

alex-maxime opened this issue · 1 comments

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.
image

      <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'
        }}
      />

@Alex237 Fixed the warning. Check out the new version. 🎉