Open Jorge-LSO opened 3 months ago
import { StatusBar } from 'expo-status-bar'; import { StyleSheet, Text, View, Image, SafeAreaView, ScrollView,Pressable } from 'react-native'; import { useFonts } from 'expo-font'; import {useEffect} from 'react'; import * as SplashScreen from 'expo-splash-screen';
import Ingles from './pagina/Ingles'; import Espanhol from './pagina/espanhol'; import Perfil from './image/ads.jpg';
export default function Perfil() { const [loaded, error] = useFonts({ 'font1': require('./font/NewAmsterdam-Regular.ttf'), 'font2': require('./font/Comfortaa-VariableFont_wght.ttf'), });
useEffect(() => { if (loaded || error) { SplashScreen.hideAsync(); } }, [loaded, error]);
if (!loaded && !error) { return null; } const editar = async () => { let result = await WebBrowser.openBrowserAsync('url do site'); setResult(result); }; return (
<Text style={styles.tit}>Livros</Text> <SafeAreaView style={styles.cont}> <ScrollView horizontal={true}> <Ingles /> <Espanhol /> </ScrollView> </SafeAreaView> <Text style={styles.tit}>Vídeo aulas</Text> <SafeAreaView style={styles.cont}> <ScrollView horizontal={true}> <Espanhol/> <Ingles/> </ScrollView> </SafeAreaView> </View> </View>
); }
const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#fff', paddingTop: 15, paddingLeft: 10, }, text:{ marginTop: 10, color:'#0081fe', fontSize:15, fontFamily: 'font1', }, titu: { fontSize: 25, fontFamily: 'font1', }, Perfil:{ justifyContent: 'center', flex: 1, marginTop: 5, flexDirection: 'row', }, image: { width: 120, height: 120, borderRadius: 80, }, sob: { fontFamily: 'font1', fontSize: 18, }, res:{ fontFamily: 'font2', fontSize: 18, }, titu: { fontSize: 30, fontFamily: 'font1', }, titf: { fontSize: 20, alignItems: 'center', fontFamily: 'font2', color: '#0081fe', paddingLeft: 4, }, tit: { fontSize: 20, alignItems: 'center', fontFamily: 'font2', }, });
Aparentemente o GitHub está apagando parte do código, estarei anexando o arquivo do código nas evidências
import { StatusBar } from 'expo-status-bar'; import { StyleSheet, Text, View, Image, SafeAreaView, ScrollView,Pressable } from 'react-native'; import { useFonts } from 'expo-font'; import {useEffect} from 'react'; import * as SplashScreen from 'expo-splash-screen';
import Ingles from './pagina/Ingles'; import Espanhol from './pagina/espanhol'; import Perfil from './image/ads.jpg';
export default function Perfil() { const [loaded, error] = useFonts({ 'font1': require('./font/NewAmsterdam-Regular.ttf'), 'font2': require('./font/Comfortaa-VariableFont_wght.ttf'), });
useEffect(() => { if (loaded || error) { SplashScreen.hideAsync(); } }, [loaded, error]);
if (!loaded && !error) { return null; } const editar = async () => { let result = await WebBrowser.openBrowserAsync('url do site'); setResult(result); }; return (
); }
const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#fff', paddingTop: 15, paddingLeft: 10, }, text:{ marginTop: 10, color:'#0081fe', fontSize:15, fontFamily: 'font1', }, titu: { fontSize: 25, fontFamily: 'font1', }, Perfil:{ justifyContent: 'center', flex: 1, marginTop: 5, flexDirection: 'row', }, image: { width: 120, height: 120, borderRadius: 80, }, sob: { fontFamily: 'font1', fontSize: 18, }, res:{ fontFamily: 'font2', fontSize: 18, }, titu: { fontSize: 30, fontFamily: 'font1', }, titf: { fontSize: 20, alignItems: 'center', fontFamily: 'font2', color: '#0081fe', paddingLeft: 4, }, tit: { fontSize: 20, alignItems: 'center', fontFamily: 'font2', }, });