mirror of
https://gitlab.com/wheres-the-tp/ui-mobile.git
synced 2026-01-25 07:24:56 -06:00
10 lines
375 B
JavaScript
10 lines
375 B
JavaScript
// @flow
|
|
import React from 'react';
|
|
import { View, Image } from 'react-native';
|
|
import { pure } from 'recompose';
|
|
|
|
export default pure(({ uri, style }: { uri: string, style?: Object }) => (
|
|
<View style={{ height: 50, width: 50, margin: 10, backgroundColor: 'grey', ...style }}>
|
|
{!!uri && <Image source={{ uri }} style={{ flex: 1, resizeMode: 'stretch' }} />}
|
|
</View>
|
|
));
|