fix : Pas besoin de theming

This commit is contained in:
Yaël Perret
2026-09-01 16:45:11 +02:00
parent 6affbef244
commit d4246aa2c8
9 changed files with 23 additions and 72 deletions

View File

@@ -14,7 +14,10 @@ import {
} from 'react-native';
import Animated, { useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';
import { useTheme } from '@/theme/useTheme';
import { colors, gradientDirection, gradients } from '@/theme/colors';
import { borderRadius } from '@/theme/spacing';
import { typography } from '@/theme/typography';
const BUTTON_HEIGHT = 52;
const PRESSED_SCALE = 0.97;
@@ -67,7 +70,6 @@ export function Button({
accessibilityLabel,
testID,
}: ButtonProps) {
const { colors, borderRadius, typography, gradients, gradientDirection } = useTheme();
const [internalLoading, setInternalLoading] = useState(false);
const [isPressed, setIsPressed] = useState(false);