parent
3d71877776
commit
0c5cabaf03
@ -1,21 +1,29 @@
|
||||
import { StatusBar } from 'expo-status-bar';
|
||||
import { StyleSheet, Text, View } from 'react-native';
|
||||
import {SafeAreaView, StyleSheet} from 'react-native';
|
||||
import Navigation from "./componente/NavigationBar";
|
||||
|
||||
import ArtistCard from './componente/ArtistCard';
|
||||
import ArtistPage from "./componente/ArtistePage";
|
||||
|
||||
export default function App() {
|
||||
//<ArtistCard name={"Eminem"} imageUri={"https://images.genius.com/76c536a17ca35f7edd1f78e129609fe0.573x573x1.jpg"}/>
|
||||
// <ArtistPage name={"Eminem"} imageUri={"https://images.genius.com/76c536a17ca35f7edd1f78e129609fe0.573x573x1.jpg"}/>
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<ArtistCard name={"Eminem"} imageUri={"https://images.genius.com/76c536a17ca35f7edd1f78e129609fe0.573x573x1.jpg"}></ArtistCard>
|
||||
<StatusBar style="auto" />
|
||||
</View>
|
||||
<>
|
||||
<SafeAreaView style={styles.topSafeArea}/>
|
||||
<SafeAreaView style={styles.mainSafeArea}>
|
||||
<Navigation/>
|
||||
</SafeAreaView>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
mainSafeArea: {
|
||||
flex: 1,
|
||||
backgroundColor: '#fff',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
backgroundColor: "#7a96e9"
|
||||
},
|
||||
topSafeArea: {
|
||||
flex: 0,
|
||||
backgroundColor: 'darksalmon'
|
||||
}
|
||||
});
|
||||
|
@ -0,0 +1,25 @@
|
||||
import {createBottomTabNavigator} from "@react-navigation/bottom-tabs";
|
||||
import {NavigationContainer} from "@react-navigation/native";
|
||||
import ArtistPage from "./ArtistePage";
|
||||
import {AntDesign, Ionicons} from '@expo/vector-icons';
|
||||
import {StyleSheet} from "react-native";
|
||||
import SettingsPage from "./SettingsPage";
|
||||
|
||||
export default function Navigation() {
|
||||
const BottomTabNavigator = createBottomTabNavigator();
|
||||
return (
|
||||
<NavigationContainer>
|
||||
<BottomTabNavigator.Navigator initialRouteName="Home">
|
||||
<BottomTabNavigator.Screen name="Home" component={ArtistPage} options={{
|
||||
title: 'Home',
|
||||
tabBarIcon: () => (<AntDesign name="home" size={24} color="black" />)
|
||||
}}/>
|
||||
<BottomTabNavigator.Screen name="Settings" component={SettingsPage} options={{
|
||||
title: 'Settings',
|
||||
tabBarIcon: () => (<Ionicons name="settings-outline" size={24} color="black" />)
|
||||
}}/>
|
||||
</BottomTabNavigator.Navigator>
|
||||
</NavigationContainer>
|
||||
)
|
||||
}
|
||||
|
@ -0,0 +1,25 @@
|
||||
import React from 'react';
|
||||
import { View, Text, StyleSheet } from 'react-native';
|
||||
|
||||
const SettingsPage = () => {
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<Text style={styles.name}>Settings</Text>
|
||||
</View>
|
||||
);
|
||||
};
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
marginTop:40,
|
||||
alignItems: 'center'
|
||||
|
||||
},
|
||||
name: {
|
||||
fontSize: 20,
|
||||
fontWeight: 'bold',
|
||||
textAlign: 'center',
|
||||
},
|
||||
});
|
||||
|
||||
export default SettingsPage;
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue