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:
Samuel Newman
2025-07-30 21:05:45 +03:00
committed by GitHub
parent fade51e9eb
commit 25e60548c4
12 changed files with 124 additions and 34 deletions
+10 -8
View File
@@ -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,