import * as React from 'react';
import { Alert, View, Linking} from 'react-native';
import { Button, Text, TextInput, Divider } from 'react-native-paper';
import { useState, useCallback } from "react";
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import createAccount from './createAccount';
import Header from '../shared/header';
const supportedURL = "https://docs.google.com/forms/d/e/1FAIpQLSe93-cuCFQ084AxVbzhwFJHjtPhrXFJ624ezAcqKU5qUsBqwg/viewform";
const submit = () => {
console.log("write something")
}
const OpenURLButton = ({ url, children }) => {
const handlePress = useCallback(async () => {
// Checking if the link is supported for links with custom URL scheme.
const supported = await Linking.canOpenURL(url);
if (supported) {
// Opening the link with some app, if the URL scheme is "http" the web link should be opened
// by some browser in the mobile
await Linking.openURL(url);
} else {
Alert.alert(`Don't know how to open this URL: ${url}`);
}
}, [url]);
return ;
};
const Stack = createNativeStackNavigator();
const ProfileScreen = ({ route }) => {
return (
Mi Cuenta
Nombre: {route.params.userName}
Email: {route.params.email}
Telefono: {route.params.phone}
Llenar formulario de voluntario
);
};
const MyComponent = () => {
return (
{
return {
headerShown:false,
headerTitle: () =>
} }}/>
);
}
export default MyComponent;