mirror of
https://gitlab.com/wheres-the-tp/ui-mobile.git
synced 2026-01-25 18:14:54 -06:00
17 lines
563 B
JavaScript
17 lines
563 B
JavaScript
// @flow
|
|
import React from 'react';
|
|
import { Text, View } from 'react-native';
|
|
import { pure } from 'recompose';
|
|
import { Link } from 'react-router-native';
|
|
import { Icon } from 'react-native-material-ui';
|
|
|
|
export default pure(({ glyph, text, route }: { glyph: string, text: string, route: string }) => (
|
|
<View style={{ flex: 3 }}>
|
|
<Link to={route}>
|
|
<View style={{ alignItems: 'center' }}>
|
|
<Icon name={glyph} size={50} color="grey" />
|
|
<Text>{text}</Text>
|
|
</View>
|
|
</Link>
|
|
</View>
|
|
));
|