From 29bfc68f90d1ca82c39765dc6c84816d2733a2fa Mon Sep 17 00:00:00 2001
From: Shravya Ramesh <shravs1208@gmail.com>
Date: Wed, 12 May 2021 22:21:45 -0700
Subject: styles, done

---
 src/components/common/BasicButton.tsx | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

(limited to 'src/components/common/BasicButton.tsx')

diff --git a/src/components/common/BasicButton.tsx b/src/components/common/BasicButton.tsx
index 1fe29cd9..e2274dbd 100644
--- a/src/components/common/BasicButton.tsx
+++ b/src/components/common/BasicButton.tsx
@@ -1,5 +1,12 @@
 import React from 'react';
-import {StyleProp, StyleSheet, Text, View, ViewStyle} from 'react-native';
+import {
+  StyleProp,
+  StyleSheet,
+  Text,
+  TextStyle,
+  View,
+  ViewStyle,
+} from 'react-native';
 import {TAGG_LIGHT_BLUE} from '../../constants';
 import {TouchableOpacity} from 'react-native-gesture-handler';
 import {normalize} from '../../utils';
@@ -8,7 +15,7 @@ interface BasicButtonProps {
   title: string;
   onPress: () => void;
   solid?: boolean;
-  externalStyles?: Record<string, StyleProp<ViewStyle>>;
+  externalStyles?: Record<string, StyleProp<ViewStyle | TextStyle>>;
 }
 const BasicButton: React.FC<BasicButtonProps> = ({
   title,
@@ -27,6 +34,7 @@ const BasicButton: React.FC<BasicButtonProps> = ({
         <Text
           style={[
             styles.buttonTitle,
+            externalStyles?.buttonTitle,
             solid
               ? styles.solidButtonTitleColor
               : styles.outlineButtonTitleColor,
-- 
cgit v1.2.3-70-g09d2

