aboutsummaryrefslogtreecommitdiff
path: root/src/components/common/BasicButton.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-05-13 15:09:58 -0400
committerGitHub <noreply@github.com>2021-05-13 15:09:58 -0400
commit0fb9405c949b2dc92e0e834f684a1f938892f230 (patch)
tree5814ecfb0829e3d518ba27df8b21156cb6c3e627 /src/components/common/BasicButton.tsx
parent2c51e35b1a6160bfedea6a3d38d0c4de2736ebdc (diff)
parent9ff2d1e32f7eb7406e139a493b1dbf4422fd1a4c (diff)
Merge pull request #420 from shravyaramesh/tma803-friend-accept-notif
[TMA-803] Modify friend request accepted notification
Diffstat (limited to 'src/components/common/BasicButton.tsx')
-rw-r--r--src/components/common/BasicButton.tsx12
1 files changed, 10 insertions, 2 deletions
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,