From fe652c10ac916d6fda143a74e3f8f500a06da31b Mon Sep 17 00:00:00 2001 From: Damian Morales Date: Fri, 31 May 2024 14:02:35 -0300 Subject: [PATCH] correcciones - crear componente button --- App.tsx | 30 ++++++- src/components/BaseButton/index.test.tsx | 7 +- src/components/BaseButton/index.tsx | 17 +++- src/components/Button/constants/index.ts | 19 ----- src/components/Button/index.test.tsx | 26 ------ src/components/Button/index.tsx | 42 +++------- src/components/Button/theme/index.ts | 34 -------- src/components/Button/types/index.ts | 6 +- .../utils/{ => getButtonStyles}/index.test.ts | 12 +-- .../utils/{ => getButtonStyles}/index.ts | 81 ++++++++----------- .../getButtonStyles/utils/constants/index.ts | 6 ++ .../utils/defaultValues/index.ts | 6 ++ .../utils/styleConfigs}/index.ts | 10 +-- 13 files changed, 114 insertions(+), 182 deletions(-) delete mode 100644 src/components/Button/constants/index.ts delete mode 100644 src/components/Button/theme/index.ts rename src/components/Button/utils/{ => getButtonStyles}/index.test.ts (83%) rename src/components/Button/utils/{ => getButtonStyles}/index.ts (60%) create mode 100644 src/components/Button/utils/getButtonStyles/utils/constants/index.ts create mode 100644 src/components/Button/utils/getButtonStyles/utils/defaultValues/index.ts rename src/components/Button/{theme/configs => utils/getButtonStyles/utils/styleConfigs}/index.ts (89%) diff --git a/App.tsx b/App.tsx index fc82556..2351c23 100644 --- a/App.tsx +++ b/App.tsx @@ -1,9 +1,33 @@ +/* eslint-disable react-native/no-inline-styles */ import React from 'react'; -import {View, Text} from 'react-native'; +import {View} from 'react-native'; +import Button from './src/components/Button'; const App = () => ( - - UI native + +