Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
benohiit opened this issue Aug 23, 2022 · 1 comment

Comments

@benohiit
Copy link

benohiit commented Aug 23, 2022

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
Copy link

Haider-Ali-7 commented Oct 12, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants