MCPcopy Create free account
hub / github.com/callstack/react-native-paper / updateTextSize

Function updateTextSize

src/components/FAB/AnimatedFAB.tsx:269–278  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

267 }
268
269 const updateTextSize = () => {
270 if (labelRef.current) {
271 const labelSize = getLabelSizeWeb(labelRef);
272
273 if (labelSize) {
274 setTextHeight(labelSize.height ?? 0);
275 setTextWidth(labelSize.width ?? 0);
276 }
277 }
278 };
279
280 updateTextSize();
281 window.addEventListener('resize', updateTextSize);

Callers 1

AnimatedFABFunction · 0.85

Calls 1

getLabelSizeWebFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…