mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-29 00:21:41 +03:00
created structure for upvote
This commit is contained in:
parent
606e5397a7
commit
1199492946
@ -5,6 +5,10 @@ export default EStyleSheet.create({
|
||||
justifyContent: 'center',
|
||||
flexDirection: 'row',
|
||||
},
|
||||
textWithIconWrapperColumn: {
|
||||
justifyContent: 'center',
|
||||
flexDirection: 'column',
|
||||
},
|
||||
longImage: {
|
||||
borderRadius: 5,
|
||||
height: 60,
|
||||
|
43
src/components/upvote/container/upvoteContainer.js
Normal file
43
src/components/upvote/container/upvoteContainer.js
Normal 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);
|
5
src/components/upvote/index.js
Normal file
5
src/components/upvote/index.js
Normal file
@ -0,0 +1,5 @@
|
||||
import ExampleView from './view/exampleView';
|
||||
import ExampleContainer from './container/exampleContainer';
|
||||
|
||||
export { ExampleView, ExampleContainer };
|
||||
export default ExampleContainer;
|
7
src/components/upvote/view/upvoteStyles.js
Normal file
7
src/components/upvote/view/upvoteStyles.js
Normal 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.
|
||||
},
|
||||
});
|
36
src/components/upvote/view/upvoteView.js
Normal file
36
src/components/upvote/view/upvoteView.js
Normal 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;
|
Loading…
Reference in New Issue
Block a user