diff --git a/components/Post.js b/components/Post.js index 1d90199..ee91a45 100644 --- a/components/Post.js +++ b/components/Post.js @@ -1,5 +1,5 @@ import React, { useState } from 'react'; -import { Text, ScrollView, FlatList, StyleSheet, View, Share } from 'react-native'; +import { Text, Pressable, 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'; @@ -82,10 +82,17 @@ let Post = (props) => { {toProfileText} - - { - cleanContent - } + { + if(cleanContent.length > 10){ + Share.share({ + message: cleanContent + }); + } + }}> + { + cleanContent + } + :