summaryrefslogtreecommitdiff
path: root/actions/render-info.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'actions/render-info.tsx')
-rw-r--r--actions/render-info.tsx8
1 files changed, 8 insertions, 0 deletions
diff --git a/actions/render-info.tsx b/actions/render-info.tsx
new file mode 100644
index 0000000..1428337
--- /dev/null
+++ b/actions/render-info.tsx
@@ -0,0 +1,8 @@
+"use server";
+
+import { Text } from "react-native";
+
+export default async function renderInfo({ name }) {
+ // Securely fetch data from an API, and read environment variables...
+ return <Text>Hello, {name}!</Text>;
+}