summaryrefslogtreecommitdiff
path: root/ignite/templates/screen/NAME-screen.tsx.ejs
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-07-14 15:10:31 +0200
committerThomas F. K. Jorna <[email protected]>2021-07-14 15:10:31 +0200
commite5021187e96b78b53203bd95d08d6818aea47d17 (patch)
tree37ec45d00eb963db53cd4bb4f04a770414b351cc /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.ejs25
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>
+ )
+})