From 6ac1b8f08f1e593f21adf0442d607a6777291b99 Mon Sep 17 00:00:00 2001 From: Leander Furumo Date: Fri, 9 Aug 2024 01:15:32 +0200 Subject: [PATCH] attempt at temp mitigatiion of overflowing navigation title --- src/Navigation.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Navigation.tsx b/src/Navigation.tsx index 2f75d50..9be79bf 100644 --- a/src/Navigation.tsx +++ b/src/Navigation.tsx @@ -38,7 +38,13 @@ const EventStackScreen = () => ( ({ title: route.params.event.title.decoded })} + options={({ route }) => ({ + // TODO: make this not suck + title: + route.params.event.title.decoded.length < 40 + ? route.params.event.title.decoded + : route.params.event.title.decoded.substring(0, 30) + '...', + })} /> );