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 {
|
||||
ActivityIndicator,
|
||||
GestureResponderEvent,
|
||||
NativeSyntheticEvent,
|
||||
NativeTouchEvent,
|
||||
type GestureResponderEvent,
|
||||
type NativeSyntheticEvent,
|
||||
type NativeTouchEvent,
|
||||
Pressable,
|
||||
PressableStateCallbackType,
|
||||
StyleProp,
|
||||
type PressableStateCallbackType,
|
||||
type StyleProp,
|
||||
StyleSheet,
|
||||
TextStyle,
|
||||
type TextStyle,
|
||||
View,
|
||||
ViewStyle,
|
||||
type ViewStyle,
|
||||
} from 'react-native'
|
||||
|
||||
import {choose} from '#/lib/functions'
|
||||
@@ -37,7 +37,9 @@ declare module 'react-native' {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Enforce that button always has a label
|
||||
/**
|
||||
* @deprecated use Button from `#/components/Button.tsx` instead
|
||||
*/
|
||||
export function Button({
|
||||
type = 'primary',
|
||||
label,
|
||||
|
||||
Reference in New Issue
Block a user