fix : Pas besoin de theming
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user