import * as React from "react"; import { Text as NativeText, I18nManager, TextProps } from "react-native"; import { withTheme } from "@draftbit/theme"; import type { ReadTheme } from "@draftbit/theme"; type Props = { theme: ReadTheme; } & TextProps; class Text extends React.Component { _root: any; render() { const { style, ...rest } = this.props; const writingDirection = I18nManager.isRTL ? "rtl" : "ltr"; return ( { this._root = c; }} style={[ { textAlign: "left", writingDirection, }, style, ]} /> ); } } export const BaseLink = ({ style, theme, title, ...props }: any): React.JSX.Element => { return ( {title} ); }; const Link: any = withTheme(BaseLink); export { Link }; export default withTheme(Text);