Modify snippets for react native

This commit is contained in:
Tobias Ostner 2025-12-31 10:05:09 +01:00
parent b656101a63
commit 59a58f66d1
2 changed files with 10 additions and 3 deletions

View file

@ -4,7 +4,7 @@
# -- # --
import { Text, View } from "react-native"; import { Text, View } from "react-native";
const ${1:App} = () => { export default function ${1:App}() {
return ( return (
<View> <View>
<Text>$1</Text> <Text>$1</Text>
@ -12,6 +12,4 @@ const ${1:App} = () => {
); );
} }
export default $1;

View file

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: react native router layout
# key: rnrl
# --
import { Slot } from "expo-router";
export default function Layout() {
return <Slot />
}