Skip to content

Commit bc68c92

Browse files
committed
chore: show undefined metadata in template
1 parent 2f20731 commit bc68c92

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

scripts/setup/templates/App.tsx.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,18 @@ function App() {
9797
);
9898
}
9999

100-
function MetadataBlock({ label, value }: { label: string; value: string }) {
100+
function MetadataBlock({
101+
label,
102+
value,
103+
}: {
104+
label: string;
105+
value: string | null | undefined;
106+
}) {
101107
return (
102108
<View style={{ gap: 4 }}>
103109
<Text style={{ fontWeight: '600' }}>{label}</Text>
104110
<TextInput
105-
value={value}
111+
value={String(value)}
106112
multiline
107113
style={{ borderWidth: 1, borderRadius: 4, padding: 8, minHeight: 60, color: 'black' }}
108114
/>

0 commit comments

Comments
 (0)