diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-07-14 15:10:31 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-07-14 15:10:31 +0200 |
commit | e5021187e96b78b53203bd95d08d6818aea47d17 (patch) | |
tree | 37ec45d00eb963db53cd4bb4f04a770414b351cc /ignite/templates/screen/NAME-screen.tsx.ejs |
New Ignite 7.0.6 app
Diffstat (limited to 'ignite/templates/screen/NAME-screen.tsx.ejs')
-rw-r--r-- | ignite/templates/screen/NAME-screen.tsx.ejs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ignite/templates/screen/NAME-screen.tsx.ejs b/ignite/templates/screen/NAME-screen.tsx.ejs new file mode 100644 index 0000000..a54ccdd --- /dev/null +++ b/ignite/templates/screen/NAME-screen.tsx.ejs @@ -0,0 +1,25 @@ +import React from "react" +import { observer } from "mobx-react-lite" +import { ViewStyle } from "react-native" +import { Screen, Text } from "../../components" +// import { useNavigation } from "@react-navigation/native" +// import { useStores } from "../../models" +import { color } from "../../theme" + +const ROOT: ViewStyle = { + backgroundColor: color.palette.black, + flex: 1, +} + +export const <%= props.pascalCaseName %>Screen = observer(function <%= props.pascalCaseName %>Screen() { + // Pull in one of our MST stores + // const { someStore, anotherStore } = useStores() + + // Pull in navigation via hook + // const navigation = useNavigation() + return ( + <Screen style={ROOT} preset="scroll"> + <Text preset="header" text="<%= props.camelName %>" /> + </Screen> + ) +}) |