Every line of 'placeholder color react native' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
22 render () { 23 const { forID, field, value, setActiveStyle, setInactiveStyle, onChange, classNameWrapper } = this.props 24 const currentValue = value || field.get('default') 25 return ( 26 27 onChange(e.target.value)} 28 /> 29 30 ) 31 }
181 setColor (color) { 182 this.color = Util.resolveColor(color); 183 return this; 184 }
37 const COLOR = function COLOR(props) { 38 return props.enabled ? props.theme.active : props.theme.color; 39 };
131 export function getColor(props: Object, base: string = 'primary'): string { 132 const { variant } = props; 133 const { colors, palette } = getTheme(props); 134 135 return palette[variant] || colors[variant] || palette[base]; 136 }
8 constructor(props) { 9 super(props); 10 this.setColor(props); 11 }
137 function useRippleColor(_props: any) { 138 let theme = useTheme(); 139 return theme === 'light' ? '#ccc' : '#fff'; 140 }
17 renderColor(color) { 18 const { name, backgroundHexa, nameHexa } = color 19 20 const backgroundHexaStyles = { 21 backgroundColor: backgroundHexa, 22 } 23 24 const nameHexaStyles = { 25 color: nameHexa, 26 } 27 28 return ( 29 <div> 30 31 32 {name} 33 34 35 36 {backgroundHexa} 37 38 39 </div> 40 ) 41 }
38 function renderColor(instance, color) { 39 40 }
12 render () { 13 return ( 14 15 16 17 ) 18 }
129 _react2.default.createElement(_reactColor.SketchPicker, { color: knob.value, onChange: function onChange(color) { 130 return _onChange(color.hex); 131 } })