-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
open email link without validating it
- Loading branch information
1 parent
d5e9c2b
commit 771c5c5
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import React from 'react'; | ||
import { StyleSheet, Text, View, Platform } from 'react-native'; | ||
import { Linking, StyleSheet, Text, View, Platform } from 'react-native'; | ||
import { MaterialIcons } from '@expo/vector-icons'; | ||
import { DrawerContentComponentProps } from '@react-navigation/drawer'; | ||
|
||
|
@@ -42,7 +42,7 @@ function NavigationRootDrawer({ navigation }: Props) { | |
{isLoggedIn && <CmButton text='LOGOUT' startIcon={<MaterialIcons name="logout" size={24} color="black" />} onPress={onLogout} />} | ||
</View> | ||
<View style={{ marginTop: 20 }}> | ||
<CmButton text='FEEDBACK' startIcon={<MaterialIcons name="email" size={24} color="black" />} onPress={() => openUrl('mailto:[email protected]')} /> | ||
<CmButton text='FEEDBACK' startIcon={<MaterialIcons name="email" size={24} color="black" />} onPress={() => Linking.openURL('mailto:[email protected]')} /> | ||
</View> | ||
</View> | ||
</View> | ||
|