-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add functional component scaffolding
- Loading branch information
1 parent
09173ed
commit 206e43b
Showing
13 changed files
with
7,732 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// @flow | ||
import { Container } from 'Olio/App/Components/<%= componentName %>/styles' | ||
|
||
type Props = {} | ||
|
||
const <%= componentName %> = ({}: Props): React.Node => { | ||
return ( | ||
<Container></Container> | ||
) | ||
} | ||
|
||
export default <%= componentName %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// @flow | ||
import Element from 'Olio/App/Components/<%= componentName %>/<%= componentName %>' | ||
import useSelector from 'Olio/App/Utils/useSelector' | ||
|
||
const <%= componentName %> = ({}: Props): React.Node => { | ||
const id: number = useSelector(state => state.account.get('id')) | ||
|
||
return ( | ||
<Element | ||
id={id} | ||
/> | ||
) | ||
} | ||
|
||
export default <%= componentName %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// @flow | ||
import styled from 'styled-components/native' | ||
import variables from 'Olio/App/Styles/Variables' | ||
|
||
export const Container = styled.View` | ||
color: ${variables.colors.white}; | ||
` |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// @flow | ||
import Text from 'Olio/App/Components/Text' | ||
|
||
type Props = {} | ||
|
||
const <%= sceneName %> = ({}: Props): React.Node => { | ||
return ( | ||
<Text>Test</Text> | ||
) | ||
} | ||
|
||
export default <%= sceneName %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// @flow | ||
import Element from 'Olio/App/Scenes/<%= sceneName %>/<%= sceneName %>' | ||
|
||
type Props = { | ||
id: number, | ||
} | ||
|
||
const <%= sceneName %> = ({ id }: Props): React.Node => { | ||
const { id } = this.props | ||
return ( | ||
<Element | ||
id={id} | ||
/> | ||
) | ||
} | ||
|
||
export default <%= sceneName %> |
Oops, something went wrong.