From bd0bae2868f98c65a196f04e686733ae6dde0db8 Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 10 Dec 2021 04:13:07 -0500 Subject: [PATCH] fix: typescript issue in banner when customizing buttons (#2970) --- src/components/Banner.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/Banner.tsx b/src/components/Banner.tsx index 72b8ffa8c7..86d65f3749 100644 --- a/src/components/Banner.tsx +++ b/src/components/Banner.tsx @@ -33,10 +33,11 @@ type Props = $RemoveChildren & { * * To customize button you can pass other props that button component takes. */ - actions: Array<{ - label: string; - onPress: () => void; - }>; + actions: Array< + { + label: string; + } & Omit, 'children'> + >; /** * Style of banner's inner content. * Use this prop to apply custom width for wide layouts.