Fix to post overflow on web (close #395) (#407)

This commit is contained in:
Paul Frazee
2023-04-06 17:12:48 -05:00
committed by GitHub
parent 1fa9402453
commit 7c99df33ad
3 changed files with 21 additions and 3 deletions
+4
View File
@@ -90,6 +90,7 @@ export const TextLink = observer(function TextLink({
text,
numberOfLines,
lineHeight,
dataSet,
}: {
testID?: string
type?: TypographyVariant
@@ -98,6 +99,7 @@ export const TextLink = observer(function TextLink({
text: string | JSX.Element | React.ReactNode
numberOfLines?: number
lineHeight?: number
dataSet?: any
}) {
const {...props} = useLinkProps({to: href})
const store = useStores()
@@ -117,6 +119,8 @@ export const TextLink = observer(function TextLink({
style={style}
numberOfLines={numberOfLines}
lineHeight={lineHeight}
// @ts-ignore web only -prf
dataSet={dataSet}
{...props}>
{text}
</Text>