Gallery
Gallery holds all the rendering logic for the list of images. It relies on native-base and, more specifically, on two of its components, <List /> and <ListItem />:
/*** src/components/Gallery ***/
import React from 'react';
import { List, ListItem, Text, Icon, Button, Container, Content }
from 'native-base';
import { Image, Dimensions, View, Share, ActivityIndicator, StyleSheet } from 'react-native';
var {height, width} = Dimensions.get('window');
export default class Gallery extends React.Component {
_share(image) {
Share.share({message: image.src, title: 'Image from: ' +
image.user.name})
}
render() {
return (
<View>
<List style={{margin: -15}}>
{
this.props.imageList && this.props.imageList.map((image) =>
{
return (
<ListItem
key={image.id}
style={{borderBottomWidth: 0,
...