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

@ -15,9 +15,11 @@ import { Image } from 'react-native';
import { ImageURISource } from 'react-native';
//* Icons
// import { BiSearchAlt } from 'react-icons';
//* Components
import {ListItemComponent} from '../components/ListItemComponent'
//@ts-ignore
const Item = ({url,item}) => { // a mettre dans components et definir une props pour passer le param

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