make dataSet web only for clarity
This commit is contained in:
@@ -5,7 +5,7 @@ import {UITextView} from 'react-native-uitextview'
|
|||||||
import {lh, s} from '#/lib/styles'
|
import {lh, s} from '#/lib/styles'
|
||||||
import {TypographyVariant, useTheme} from '#/lib/ThemeContext'
|
import {TypographyVariant, useTheme} from '#/lib/ThemeContext'
|
||||||
import {logger} from '#/logger'
|
import {logger} from '#/logger'
|
||||||
import {isIOS} from '#/platform/detection'
|
import {isIOS, isWeb} from '#/platform/detection'
|
||||||
import {applyFonts, useAlf} from '#/alf'
|
import {applyFonts, useAlf} from '#/alf'
|
||||||
import {
|
import {
|
||||||
childHasEmoji,
|
childHasEmoji,
|
||||||
@@ -85,7 +85,9 @@ export function Text({
|
|||||||
uiTextView: selectable && isIOS,
|
uiTextView: selectable && isIOS,
|
||||||
selectable,
|
selectable,
|
||||||
style: flattened,
|
style: flattened,
|
||||||
dataSet: Object.assign({tooltip: title}, dataSet || {}),
|
dataSet: isWeb
|
||||||
|
? Object.assign({tooltip: title}, dataSet || {})
|
||||||
|
: undefined,
|
||||||
...props,
|
...props,
|
||||||
}
|
}
|
||||||
}, [
|
}, [
|
||||||
|
|||||||
Reference in New Issue
Block a user