toystars / react-native-multiple-select

Simple multi-select component for react-native
MIT License
565 stars 313 forks source link

Warning: Failed prop type: Invalid props.styleIndicator key `color` supplied to `MultiSelect` #206

Open benohiit opened 2 years ago

benohiit commented 2 years ago

I have a warning appeared for the style of the styleIndicator, but it seems working.

Warning: Failed prop type: Invalid props.styleIndicator key `color` supplied to `MultiSelect`.
Bad object: {
  "color": "#007aff"
}

How can I get rid of this warning ?

Steps to Reproduce

just add the prop in the multi select : styleIndicator={{ color: '#007aff' }}

Workaround solution

Well i just wrote this for the me moment import { LogBox } from 'react-native'; LogBox.ignoreLogs(['Invalid props.styleIndicator key']);

Haider-Ali-7 commented 1 year ago

styleIndicator doesn't accept color property, instead you can go react-native-multi-select.js file and search for styles.indicator and then crtl+click on indicator, it'll take you the style. There u'll find color property you can change it as per requirement. This way warning will go away.