react-native-fast-image/example/DefaultImageGrid.js

21 lines
543 B
JavaScript
Raw Normal View History

2017-04-13 04:13:44 +00:00
// @flow
import React from 'react'
import { Image } from 'react-native'
import Icon from 'react-native-vector-icons/Ionicons'
import ImageGrid from './ImageGrid'
const DefaultImageGrid = () =>
<ImageGrid
ImageComponent={Image}
/>
DefaultImageGrid.navigationOptions = {
tabBarLabel: "Image Grid",
tabBarIcon: ({ focused, tintColor }) => {
if (focused) return <Icon name="ios-image" size={26} color={tintColor} />
return <Icon name="ios-image-outline" size={26} color={tintColor} />
},
}
export default DefaultImageGrid