mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-23 05:13:04 +03:00
Added exmaple folder for developers
This commit is contained in:
parent
2a6d1567cc
commit
0b611f491d
@ -0,0 +1,49 @@
|
||||
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() {
|
||||
const {} = this.props;
|
||||
|
||||
return <ExampleView />;
|
||||
}
|
||||
}
|
||||
|
||||
const mapStateToProps = state => ({
|
||||
user: state.user.user,
|
||||
});
|
||||
|
||||
const mapDispatchToProps = (dispatch, ownProps) => ({
|
||||
// onClick: () => dispatch(setVisibilityFilter(ownProps.filter))
|
||||
});
|
||||
|
||||
export default connect(
|
||||
mapStateToProps,
|
||||
mapDispatchToProps
|
||||
)(ExampleContainer);
|
@ -0,0 +1,37 @@
|
||||
import React, { Component } from "react";
|
||||
import {} from "react-native";
|
||||
|
||||
// Constants
|
||||
|
||||
// Components
|
||||
|
||||
// Styles
|
||||
// eslint-disable-next-line
|
||||
import styles from "./_styles";
|
||||
|
||||
/*
|
||||
* Props Name Description Value
|
||||
*@props --> props name here description here Value Type Here
|
||||
*
|
||||
*/
|
||||
|
||||
class ExampleView extends Component {
|
||||
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;
|
@ -0,0 +1,5 @@
|
||||
import ExampleView from "./exampleView";
|
||||
import ExampleContainer from "./exampleContainer";
|
||||
|
||||
export { ExampleView, ExampleContainer };
|
||||
export default ExampleContainer;
|
3
src/_EXAMPLES FOR DEVELOPERS/components-screens/index.js
Normal file
3
src/_EXAMPLES FOR DEVELOPERS/components-screens/index.js
Normal file
@ -0,0 +1,3 @@
|
||||
import Exmaple from "./example/example.container";
|
||||
|
||||
export { Exmaple };
|
Loading…
Reference in New Issue
Block a user