mirror of
https://gitlab.com/wheres-the-tp/ui-mobile.git
synced 2026-01-25 05:54:56 -06:00
10 lines
343 B
JavaScript
10 lines
343 B
JavaScript
// @flow
|
|
import React from 'react';
|
|
import { View, Image } from 'react-native';
|
|
import { pure } from 'recompose';
|
|
|
|
export default pure(({ uri }: { uri?: string }) => (
|
|
<View style={{ position: 'absolute', top: 0, bottom: 0, left: 0, right: 0 }}>
|
|
{!!uri && <Image style={{ flex: 1, resizeMode: 'stretch' }} source={{ uri }} />}
|
|
</View>
|
|
));
|