From 21f987a5a59332794b00d3cc55268b76794bd1f7 Mon Sep 17 00:00:00 2001 From: Adolfo Reyna Date: Fri, 10 Mar 2023 20:06:29 -0600 Subject: [PATCH] Add sharing button logics --- components/Post.js | 10 ++++++++-- components/ProfileHeader.js | 23 ++++++++++++++++++++--- 2 files changed, 28 insertions(+), 5 deletions(-) diff --git a/components/Post.js b/components/Post.js index 0535ec8..c4b3822 100644 --- a/components/Post.js +++ b/components/Post.js @@ -1,5 +1,5 @@ import React, { useState } from 'react'; -import { Text, ScrollView, FlatList, StyleSheet, View } from 'react-native'; +import { Text, ScrollView, FlatList, StyleSheet, View, Share } from 'react-native'; import Hyperlink from 'react-native-hyperlink' import { Button, Card, Chip } from 'react-native-paper'; import API from './../API.js'; @@ -12,6 +12,7 @@ import { useSnapshot } from 'valtio'; import GlobalState from '../contexts/GlobalState.js'; import i18n from "../i18nMessages.js"; + let Post = (props) => { const gState = useSnapshot(GlobalState); const viewer = gState.me; @@ -90,7 +91,12 @@ let Post = (props) => { {likes} - + + {/*