import React from "react"; import { Text as RNText } from "react-native"; import type { AutoLinkProps } from "./types"; import { ComposeTextWithLinks } from "./components"; import { useCreateLinkedText } from "./hooks/useCreateLinkedText"; import { TypographyGestureDetector } from "../Typography"; import { useAtlantisTheme } from "../AtlantisThemeContext"; export function AutoLink({ children: text = "", bottomTabsVisible = true, selectable = true, ...rest }: AutoLinkProps) { const { splitText, matches } = useCreateLinkedText({ text, ...rest }); const { tokens } = useAtlantisTheme(); return ( {splitText.map((part, index) => ( ))} ); }