From 0b611f491d2bb492171cb004a8d55e99ec3766ba Mon Sep 17 00:00:00 2001 From: mistikk Date: Mon, 24 Sep 2018 01:02:29 +0300 Subject: [PATCH] Added exmaple folder for developers --- .../example/example.container.js | 49 +++++++++++++++++++ .../example/example.view.js | 37 ++++++++++++++ .../components-screens/example/index.js | 5 ++ .../components-screens/index.js | 3 ++ .../styles/example.styles.js | 0 5 files changed, 94 insertions(+) create mode 100644 src/_EXAMPLES FOR DEVELOPERS/components-screens/example/example.container.js create mode 100644 src/_EXAMPLES FOR DEVELOPERS/components-screens/example/example.view.js create mode 100644 src/_EXAMPLES FOR DEVELOPERS/components-screens/example/index.js create mode 100644 src/_EXAMPLES FOR DEVELOPERS/components-screens/index.js create mode 100644 src/_EXAMPLES FOR DEVELOPERS/styles/example.styles.js diff --git a/src/_EXAMPLES FOR DEVELOPERS/components-screens/example/example.container.js b/src/_EXAMPLES FOR DEVELOPERS/components-screens/example/example.container.js new file mode 100644 index 000000000..e86002516 --- /dev/null +++ b/src/_EXAMPLES FOR DEVELOPERS/components-screens/example/example.container.js @@ -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 ; + } +} + +const mapStateToProps = state => ({ + user: state.user.user, +}); + +const mapDispatchToProps = (dispatch, ownProps) => ({ + // onClick: () => dispatch(setVisibilityFilter(ownProps.filter)) +}); + +export default connect( + mapStateToProps, + mapDispatchToProps +)(ExampleContainer); diff --git a/src/_EXAMPLES FOR DEVELOPERS/components-screens/example/example.view.js b/src/_EXAMPLES FOR DEVELOPERS/components-screens/example/example.view.js new file mode 100644 index 000000000..cba427e12 --- /dev/null +++ b/src/_EXAMPLES FOR DEVELOPERS/components-screens/example/example.view.js @@ -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 ; + } +} + +export default ExampleView; diff --git a/src/_EXAMPLES FOR DEVELOPERS/components-screens/example/index.js b/src/_EXAMPLES FOR DEVELOPERS/components-screens/example/index.js new file mode 100644 index 000000000..35b7a581e --- /dev/null +++ b/src/_EXAMPLES FOR DEVELOPERS/components-screens/example/index.js @@ -0,0 +1,5 @@ +import ExampleView from "./exampleView"; +import ExampleContainer from "./exampleContainer"; + +export { ExampleView, ExampleContainer }; +export default ExampleContainer; diff --git a/src/_EXAMPLES FOR DEVELOPERS/components-screens/index.js b/src/_EXAMPLES FOR DEVELOPERS/components-screens/index.js new file mode 100644 index 000000000..4483c09d6 --- /dev/null +++ b/src/_EXAMPLES FOR DEVELOPERS/components-screens/index.js @@ -0,0 +1,3 @@ +import Exmaple from "./example/example.container"; + +export { Exmaple }; diff --git a/src/_EXAMPLES FOR DEVELOPERS/styles/example.styles.js b/src/_EXAMPLES FOR DEVELOPERS/styles/example.styles.js new file mode 100644 index 000000000..e69de29bb