mirror of
https://gitlab.com/wheres-the-tp/ui-mobile.git
synced 2026-01-25 07:54:57 -06:00
31 lines
786 B
JavaScript
31 lines
786 B
JavaScript
|
|
// @flow
|
||
|
|
import React, { Component } from 'react';
|
||
|
|
import { Text, View } from 'react-native';
|
||
|
|
import theme from '../ui-theme';
|
||
|
|
import { type Place } from '../records/PlaceRecord';
|
||
|
|
import { compose, pure, getContext } from 'recompose';
|
||
|
|
|
||
|
|
export class PlaceDetail extends Component {
|
||
|
|
static displayName = 'PlaceDetail';
|
||
|
|
|
||
|
|
props: {
|
||
|
|
route: {
|
||
|
|
place: Place,
|
||
|
|
},
|
||
|
|
navigator: Object,
|
||
|
|
};
|
||
|
|
|
||
|
|
render() {
|
||
|
|
const { route: { place } } = this.props;
|
||
|
|
return (
|
||
|
|
<View style={theme.page.container}>
|
||
|
|
<Text>{place.name}</Text>
|
||
|
|
</View>
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
const enhance = compose(pure, getContext({ route: React.PropTypes.object, navigator: React.PropTypes.object }));
|
||
|
|
|
||
|
|
export default enhance(PlaceDetail);
|