pull/5/head
Corentin RICHARD 2 years ago
commit 731c69ccc6

@ -0,0 +1,17 @@
import { View } from 'react-native';
import { Image } from 'react-native';
type ItemProps = {
url : string //Image URL
}
export function ListItemComponent(props : ItemProps){
return (
<View>
<Image
source={{uri: props.url}}
style={{flex:1, minHeight:250, minWidth:180}}/>
</View>
)
}

@ -56,8 +56,9 @@ export const getAllCards = () => {
headers: { headers: {
'content-length': '9508', 'content-length': '9508',
'content-type': 'application/json; charset=utf-8', 'content-type': 'application/json; charset=utf-8',
'etag': 'W/"74bb-d4gMlMNks7UGES3Jmn6wzUTXaLI"' 'etag': 'W/"74bb-d4gMlMNks7UGES3Jmn6wzUTXaLI"',
} }
//'pageSize':'100'
}; };
//! Actualisation de l'API (16/03) : //! Actualisation de l'API (16/03) :
const CardsPromise = await fetch('https://us.api.blizzard.com/hearthstone/cards?locale=en_US&access_token=EU1AbKy9Q7sOUjQYC5AFF1O1JPuoAgCNxk', options); const CardsPromise = await fetch('https://us.api.blizzard.com/hearthstone/cards?locale=en_US&access_token=EU1AbKy9Q7sOUjQYC5AFF1O1JPuoAgCNxk', options);

@ -15,8 +15,10 @@ import { Image } from 'react-native';
import { ImageURISource } from 'react-native'; import { ImageURISource } from 'react-native';
//* Icons //* Icons
// import { BiSearchAlt } from 'react-icons';
//import { BiSearchAlt } from 'react-icons'; //* Components
import {ListItemComponent} from '../components/ListItemComponent'
//@ts-ignore //@ts-ignore

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save