Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
protected _render(internalProps: RN.TextProps, onMount: (text: any) => void) {
if (this.context && !this.context.isRxParentAText) {
// Standalone link. We use a keyboard focusable RN.Text
return this._renderLinkAsFocusableText(internalProps, onMount);
} else if (RNW.HyperlinkWindows && !this.state.isRestrictedOrLimited) {
// Inline Link. We use a native Hyperlink inline if RN supports it and element is not "focus restricted/limited"
return this._renderLinkAsNativeHyperlink(internalProps);
} else {
// Inline Link. We defer to base class (that uses a plain RN.Text) for the rest of the cases.
return super._render(internalProps, onMount);
}
}