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

Function isStringTappable

packages/core/ui/text-base/index.android.ts:595–607  ·  view source on GitHub ↗
(formattedString: FormattedString)

Source from the content-addressed store, hash-verified

593}
594
595function isStringTappable(formattedString: FormattedString) {
596 if (!formattedString) {
597 return false;
598 }
599 for (let i = 0, length = formattedString.spans.length; i < length; i++) {
600 const span = formattedString.spans.getItem(i);
601 if (span.tappable) {
602 return true;
603 }
604 }
605
606 return false;
607}
608
609function createSpannableStringBuilder(formattedString: FormattedString, defaultFontSize: number): android.text.SpannableStringBuilder {
610 if (!formattedString || !formattedString.parent) {

Callers 1

Calls 1

getItemMethod · 0.65

Tested by

no test coverage detected