MCPcopy Index your code
hub / github.com/callstack/react-native-paper / changeIconColor

Function changeIconColor

example/src/Examples/TextInputExample.tsx:136–152  ·  view source on GitHub ↗
(name: keyof State['iconsColor'])

Source from the content-addressed store, hash-verified

134 });
135
136 const changeIconColor = (name: keyof State['iconsColor']) => {
137 const color = state.iconsColor[name];
138
139 const newColors = {
140 ...state.iconsColor,
141 [name]: !color
142 ? theme.isV3
143 ? theme.colors.primary
144 : theme.colors?.accent
145 : undefined,
146 };
147
148 dispatch({
149 type: 'iconsColor',
150 payload: newColors,
151 });
152 };
153
154 const [fontsLoaded] = useFonts({
155 Abel: require('../../assets/fonts/Abel-Regular.ttf'),

Callers 1

TextInputExampleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…