created structure for upvote

This commit is contained in:
ue 2018-10-26 16:23:35 +03:00
parent 606e5397a7
commit 1199492946
5 changed files with 95 additions and 0 deletions

View File

@ -5,6 +5,10 @@ export default EStyleSheet.create({
justifyContent: 'center',
flexDirection: 'row',
},
textWithIconWrapperColumn: {
justifyContent: 'center',
flexDirection: 'column',
},
longImage: {
borderRadius: 5,
height: 60,

View File

@ -0,0 +1,43 @@
import React, { Component } from 'react';
import { connect } from 'react-redux';
// Services and Actions
// Middleware
// Constants
// Utilities
// Component
import { ExampleView } from '..';
/*
* Props Name Description Value
*@props --> props name here description here Value Type Here
*
*/
class ExampleContainer extends Component {
constructor(props) {
super(props);
this.state = {};
}
// Component Life Cycle Functions
// Component Functions
render() {
// eslint-disable-next-line
const { } = this.props;
return <ExampleView />;
}
}
const mapStateToProps = state => ({
user: state.user.user,
});
export default connect(mapStateToProps)(ExampleContainer);

View File

@ -0,0 +1,5 @@
import ExampleView from './view/exampleView';
import ExampleContainer from './container/exampleContainer';
export { ExampleView, ExampleContainer };
export default ExampleContainer;

View File

@ -0,0 +1,7 @@
import EStyleSheet from 'react-native-extended-stylesheet';
export default EStyleSheet.create({
styleName: {
// TODO: If we need default style. We can put there.
},
});

View File

@ -0,0 +1,36 @@
import React, { Component } from 'react';
import {} from 'react-native';
// Constants
// Components
// Styles
// eslint-disable-next-line
import styles from './_styles';
class ExampleView extends Component {
/* Props
* ------------------------------------------------
* @prop { type } name - Description....
*/
constructor(props) {
super(props);
this.state = {};
}
// Component Life Cycles
// Component Functions
render() {
// eslint-disable-next-line
const {} = this.props;
// eslint-disable-next-line
return <ElementName />;
}
}
export default ExampleView;