MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / isStringTappable

Function isStringTappable

packages/core/ui/text-base/index.ios.ts:507–519  ·  view source on GitHub ↗
(formattedString: FormattedString)

Source from the content-addressed store, hash-verified

505}
506
507function isStringTappable(formattedString: FormattedString) {
508 if (!formattedString) {
509 return false;
510 }
511 for (let i = 0, length = formattedString.spans.length; i < length; i++) {
512 const span = formattedString.spans.getItem(i);
513 if (span.tappable) {
514 return true;
515 }
516 }
517
518 return false;
519}
520
521function adjustMinMaxFontScale(value: number, view: TextBase | Span) {
522 let finalValue;

Callers 1

Calls 1

getItemMethod · 0.65

Tested by

no test coverage detected