Added exmaple folder for developers

This commit is contained in:
mistikk 2018-09-24 01:02:29 +03:00
parent 2a6d1567cc
commit 0b611f491d
5 changed files with 94 additions and 0 deletions

View File

@ -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);

View File

@ -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;

View File

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

View File

@ -0,0 +1,3 @@
import Exmaple from "./example/example.container";
export { Exmaple };