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.