aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-02-09 14:06:06 -0500
committerIvan Chen <ivan@tagg.id>2021-02-09 14:06:06 -0500
commit952eb1b9b58362cc4ead737554872197ae8a89b1 (patch)
treebdfbe3f8f5376c4ee9ca124896f8618b16833de7 /src
parent55b1102ce08376a5dce6c9cd9380b13ac4bf3960 (diff)
added actual url to redirect, fixed bug for twitter handle redirect
Diffstat (limited to 'src')
-rw-r--r--src/components/taggs/TwitterTaggPost.tsx11
-rw-r--r--src/screens/onboarding/UpdateRequired.tsx8
2 files changed, 11 insertions, 8 deletions
diff --git a/src/components/taggs/TwitterTaggPost.tsx b/src/components/taggs/TwitterTaggPost.tsx
index 0cfde857..834e32ef 100644
--- a/src/components/taggs/TwitterTaggPost.tsx
+++ b/src/components/taggs/TwitterTaggPost.tsx
@@ -3,11 +3,7 @@ import {Image, Linking, StyleSheet, View} from 'react-native';
import {Text} from 'react-native-animatable';
import Hyperlink from 'react-native-hyperlink';
import LinearGradient from 'react-native-linear-gradient';
-import {
- AVATAR_DIM,
- TAGGS_GRADIENT,
- TAGG_LIGHT_BLUE,
-} from '../../constants';
+import {AVATAR_DIM, TAGGS_GRADIENT, TAGG_LIGHT_BLUE} from '../../constants';
import {TwitterPostType} from '../../types';
import {handleOpenSocialUrlOnBrowser, SCREEN_WIDTH} from '../../utils';
import {DateLabel, PostCarousel} from '../common';
@@ -94,7 +90,10 @@ const TwitterTaggPost: React.FC<TwitterTaggPostProps> = ({
<Text
style={styles.replyHandleText}
onPress={() =>
- openTwitterProfileLink(post.in_reply_to?.handle)
+ handleOpenSocialUrlOnBrowser(
+ post.in_reply_to?.handle,
+ 'Twitter',
+ )
}>
@{post.in_reply_to.handle}
</Text>
diff --git a/src/screens/onboarding/UpdateRequired.tsx b/src/screens/onboarding/UpdateRequired.tsx
index 17fcc6cf..adf7ba71 100644
--- a/src/screens/onboarding/UpdateRequired.tsx
+++ b/src/screens/onboarding/UpdateRequired.tsx
@@ -1,5 +1,5 @@
import React from 'react';
-import {Image, Modal, StyleSheet, View} from 'react-native';
+import {Image, Linking, Modal, StyleSheet, View} from 'react-native';
import {Text} from 'react-native-animatable';
import {CenteredView, TaggSquareButton} from '../../components';
import {normalize, SCREEN_WIDTH} from '../../utils';
@@ -24,7 +24,11 @@ const UpdateRequired: React.FC<UpdateRequiredProps> = ({visible}) => {
</Text>
<TaggSquareButton
title={'Update'}
- onPress={() => {}}
+ onPress={() => {
+ Linking.openURL(
+ 'https://apps.apple.com/us/app/tagg-discover-your-community/id1537853613',
+ );
+ }}
buttonStyle={'normal'}
buttonColor={'purple'}
labelColor={'white'}