Describe the bug
I am trying to create a default Popover component with my own custom popoverStyle and arrowSize so I dont have to repeat the same styles for each Popover usage. The PopoverProps in Typescript do not have the from prop, however, since the from prop is only specified on PublicPopoverProps which extends PopoverProps but is not exported as a type. So since I can't import PublicPopoverProps instead, I get a Property 'from' does not exist on type 'IntrinsicAttributes & PopoverProps'. Typescript error.
I'm wondering if it would make more sense to export PublicPopoverProps instead of PopoverProps since those are the props the Popover component is actually utilizing and the from prop is defined there.
Here is an example of my custom Popover I am trying to create:
Describe the bug I am trying to create a default
Popover
component with my own custompopoverStyle
andarrowSize
so I dont have to repeat the same styles for eachPopover
usage. ThePopoverProps
in Typescript do not have thefrom
prop, however, since thefrom
prop is only specified onPublicPopoverProps
which extendsPopoverProps
but is not exported as a type. So since I can't importPublicPopoverProps
instead, I get aProperty 'from' does not exist on type 'IntrinsicAttributes & PopoverProps'.
Typescript error.I'm wondering if it would make more sense to export
PublicPopoverProps
instead ofPopoverProps
since those are the props thePopover
component is actually utilizing and thefrom
prop is defined there.Here is an example of my custom
Popover
I am trying to create:Then when I try to create a
CustomPopover
:Thank you for creating and maintaining this library!
Device/Setup Info:
react-native
version: 0.70.2react-native-popover-view
version: 5.1.5