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

18 lines
535 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'
2017-04-18 05:52:09 +00:00
const DefaultImageGrid = () => <ImageGrid ImageComponent={Image} />
2017-04-13 04:13:44 +00:00
DefaultImageGrid.navigationOptions = {
2017-04-18 05:52:09 +00:00
tabBarLabel: 'Image Grid',
2017-04-13 04:13:44 +00:00
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