mirror of
https://github.com/status-im/react-native-fast-image.git
synced 2025-02-25 04:35:12 +00:00
21 lines
555 B
JavaScript
21 lines
555 B
JavaScript
// @flow
|
|
import React from 'react'
|
|
import FastImage from 'react-native-fast-image'
|
|
import Icon from 'react-native-vector-icons/Ionicons'
|
|
import ImageGrid from './ImageGrid'
|
|
|
|
const FastImageGrid = () =>
|
|
<ImageGrid
|
|
ImageComponent={FastImage}
|
|
/>
|
|
|
|
FastImageGrid.navigationOptions = {
|
|
tabBarLabel: "FastImage Grid",
|
|
tabBarIcon: ({ focused, tintColor }) => {
|
|
if (focused) return <Icon name="ios-photos" size={26} color={tintColor} />
|
|
return <Icon name="ios-photos-outline" size={26} color={tintColor} />
|
|
},
|
|
}
|
|
|
|
export default FastImageGrid
|