-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
37 lines (33 loc) · 1.21 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, View } from 'react-native';
import { BASE_API_URL } from './utils/constants';
import Pokeball from './components/Pokeball';
import SearchBar from './components/SearchBar';
import SearchTip from './components/SearchTip';
import CardView from './components/CardView';
import PageView from './components/PageView';
export default function App() {
return (
<View style={styles.container}>
<StatusBar style="auto" />
<Pokeball />
<SearchBar />
{/* <CardView data_url={`${BASE_API_URL}/pokemon/piplup`}/>
<PageView data_url={`${BASE_API_URL}/pokemon/gallade`}/> */}
{/* <FullView data_url="https://pokeapi.co/api/v2/pokemon/garchomp"/> */}
{/* <PokemonListView data_url="https://pokeapi.co/api/v2/pokemon/piplup"/>
<PokemonFullView data_url="https://pokeapi.co/api/v2/pokemon/garchomp"/> */}
{/* trying ralts double evolution */}
{/* <EvolutionView url="https://pokeapi.co/api/v2/evolution-chain/140/"/> */}
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
width: '100%',
},
});