Mark old components as deprecated (#8747)
* mark a bunch of stuff as deprecated * mark s as deprecated (serverence reference????) * rm type import
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
import React from 'react'
|
||||
import {StyleSheet, TextProps} from 'react-native'
|
||||
import {StyleSheet, type TextProps} from 'react-native'
|
||||
import {UITextView} from 'react-native-uitextview'
|
||||
|
||||
import {lh, s} from '#/lib/styles'
|
||||
import {TypographyVariant, useTheme} from '#/lib/ThemeContext'
|
||||
import {type TypographyVariant, useTheme} from '#/lib/ThemeContext'
|
||||
import {logger} from '#/logger'
|
||||
import {isIOS, isWeb} from '#/platform/detection'
|
||||
import {applyFonts, useAlf} from '#/alf'
|
||||
import {
|
||||
childHasEmoji,
|
||||
renderChildrenWithEmoji,
|
||||
StringChild,
|
||||
type StringChild,
|
||||
} from '#/alf/typography'
|
||||
|
||||
export type CustomTextProps = Omit<TextProps, 'children'> & {
|
||||
@@ -32,7 +32,7 @@ export type CustomTextProps = Omit<TextProps, 'children'> & {
|
||||
|
||||
export {Text_DEPRECATED as Text}
|
||||
/**
|
||||
* @deprecated use Text from Typography instead.
|
||||
* @deprecated use Text from `#/components/Typography.tsx` instead
|
||||
*/
|
||||
function Text_DEPRECATED({
|
||||
type = 'md',
|
||||
|
||||
Reference in New Issue
Block a user