Skip to content

Commit 0b3d9f7

Browse files
committed
💬 app: read html metadata from package
1 parent 3102688 commit 0b3d9f7

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎src/app/+html.tsx‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
import { ScrollViewStyleReset } from "expo-router/html";
22
import React, { type ReactNode } from "react";
33

4+
import appMetadata from "../../package.json";
5+
46
export default function HTML({ children }: { children: ReactNode }) {
57
return (
68
<html lang="en">
79
<head>
810
<meta charSet="utf-8" />
911
<title>Exa App</title>
10-
<meta name="title" content="Exa App" />
11-
<meta name="description" content="Exactly what finance should be today" />
12+
<meta name="title" content={appMetadata.title} />
13+
<meta name="description" content={appMetadata.description} />
1214
<meta property="og:type" content="website" />
13-
<meta property="og:title" content="Exa App" />
14-
<meta property="og:description" content="Exactly what finance should be today" />
15+
<meta property="og:title" content={appMetadata.title} />
16+
<meta property="og:description" content={appMetadata.description} />
1517
<meta property="og:image" content="https://exactly.app/og-image.webp" />
1618
<meta property="og:image:width" content="1200" />
1719
<meta property="og:image:height" content="630" />

0 commit comments

Comments
 (0)