Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Adicionada função de dar share do aplicativo para os amigos :) #174

Merged
merged 2 commits into from
Jun 1, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions src/Components/Config/configBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import {
Text,
TouchableOpacity,
ScrollView,
Switch
Switch,
Share
} from "react-native"
import { Icon } from "react-native-elements"

Expand Down Expand Up @@ -69,7 +70,15 @@ const configBody = props => {
<Text style={styles.touchableStyle}>Enviar Feedback</Text>
</TouchableOpacity>

<TouchableOpacity style={styles.touchableIcon}>
<TouchableOpacity
style={styles.touchableIcon}
onPress={() => {
Share.share({
message:
"Olá, já instalou o Unichat? Se não, é bem fácil. Apenas clique no link a seguir https://github.com/ES2-UFPI/Unichat/releases"
})
}}
>
<Icon name="share" size={28} color="#14d2e8" />
<Text style={styles.touchableStyle}>Compartilhar App</Text>
</TouchableOpacity>
Expand Down