aboutsummaryrefslogtreecommitdiff
path: root/src/components/common/SocialIcon.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@thetaggid.com>2021-02-11 16:53:24 -0500
committerGitHub <noreply@github.com>2021-02-11 16:53:24 -0500
commit2561d20e17a697726d6b77accf79c9da2d1f6ef6 (patch)
tree9e2fdacee1040a9e9f975a329846dfa60cf5f3a4 /src/components/common/SocialIcon.tsx
parent3bc52c4e021199c5b546d51cd238aad9a96852a7 (diff)
parent97e73f47622df32859964df4c94a4d419590bee2 (diff)
Merge pull request #237 from shravyaramesh/tma255-taggs-bar
[TMA255] Suggested People: Taggs bar
Diffstat (limited to 'src/components/common/SocialIcon.tsx')
-rw-r--r--src/components/common/SocialIcon.tsx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/components/common/SocialIcon.tsx b/src/components/common/SocialIcon.tsx
index 3c9deb6d..8216b6ff 100644
--- a/src/components/common/SocialIcon.tsx
+++ b/src/components/common/SocialIcon.tsx
@@ -1,9 +1,11 @@
import React from 'react';
import {Image} from 'react-native';
+import {ScreenType} from '../../types';
interface SocialIconProps {
social: string;
style: object;
+ screenType: ScreenType;
}
/**
* An image component that returns the <Image> of the icon for a specific social media platform.
@@ -11,10 +13,14 @@ interface SocialIconProps {
const SocialIcon: React.FC<SocialIconProps> = ({
social: social,
style: style,
+ screenType,
}) => {
switch (social) {
case 'Instagram':
var icon = require('../../assets/socials/instagram-icon.png');
+ if (screenType === ScreenType.SuggestedPeople) {
+ icon = require('../../assets/socials/instagram-icon-white-bg.png');
+ }
break;
case 'Facebook':
var icon = require('../../assets/socials/facebook-icon.png');