diff --git a/flakes/emacs/config/snippets/tsx-ts-mode/rnfc b/flakes/emacs/config/snippets/tsx-ts-mode/rnfc index a3ebb89..b71fa48 100644 --- a/flakes/emacs/config/snippets/tsx-ts-mode/rnfc +++ b/flakes/emacs/config/snippets/tsx-ts-mode/rnfc @@ -4,7 +4,7 @@ # -- import { Text, View } from "react-native"; -const ${1:App} = () => { +export default function ${1:App}() { return ( $1 @@ -12,6 +12,4 @@ const ${1:App} = () => { ); } -export default $1; - diff --git a/flakes/emacs/config/snippets/tsx-ts-mode/rnrl b/flakes/emacs/config/snippets/tsx-ts-mode/rnrl new file mode 100644 index 0000000..a09bf93 --- /dev/null +++ b/flakes/emacs/config/snippets/tsx-ts-mode/rnrl @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: react native router layout +# key: rnrl +# -- +import { Slot } from "expo-router"; + +export default function Layout() { + return +} \ No newline at end of file