mattermost-mobile/app/scenes/search/search.js
enahum e2f3f7b803 project folder structure (#107)
* project folder structure

* Moving store to be called from app folder
2016-12-09 10:34:17 -05:00

30 lines
872 B
JavaScript

// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import React from 'react';
import Button from 'app/components/button';
import {GlobalStyles} from 'app/styles';
import {Text, View} from 'react-native';
export default class Search extends React.Component {
static propTypes = {
actions: React.PropTypes.object.isRequired,
searchType: React.PropTypes.string.isRequired
};
render() {
return (
<View style={GlobalStyles.container}>
<Text>
{'This is a search for ' + this.props.searchType}
</Text>
<Button onPress={this.props.actions.goBack}>
<Text>
{'<< Go back'}
</Text>
</Button>
</View>
);
}
}