What i want to do is limit the items, and show only the 12 items.
My Code:
componentDidMount() {
return fetch(ConfigApp.URL+'json/data_posts.php')
.then((response) => response.json())
.then((responseJson) => {
this.setState({
isLoading: false,
dataPosts: responseJson
}
})}
render() {
return (
<FlatList
data={ this.state.dataPosts }
renderItem={({item}) =>
<Image source={{uri: ConfigApp.IMAGESFOLDER+item.post_image}}/>
keyExtractor={(item, index) => index}
/>