From 59a58f66d178abd4cb2e55056e8a1b6ab16e1c2c Mon Sep 17 00:00:00 2001 From: Tobias Ostner Date: Wed, 31 Dec 2025 10:05:09 +0100 Subject: [PATCH] Modify snippets for react native --- flakes/emacs/config/snippets/tsx-ts-mode/rnfc | 4 +--- flakes/emacs/config/snippets/tsx-ts-mode/rnrl | 9 +++++++++ 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 flakes/emacs/config/snippets/tsx-ts-mode/rnrl 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