Add wrappingComponent prop to BottomSheet
Feature Request
Hi! I am the author of react-native-shadow-2. Being so, I simply can't use elevation/iOS shadow props hehe.
In my current contract, I need to use the BottomSheet. I never used it before - it's a really cool lib!
To use my Shadow component, I need to wrap it around the child component.
Why it is needed
To allow further customizations, like using my Shadow.
Possible implementation
What I am thinking right now is to have a wrappingComponent prop, to enter either the element or the functional component. The functional component is easier, it would ({children}) => JSX.Element. The element could be doable with cloneElement, but I don't think it's required. But, maybe, the FC would cause state loss.
Code sample
<BottomSheet
{...}
wrappingComponent={({children}) => <Shadow children={children}/>}
>
Maybe, there could be instead a topComponent, to be drawn above the Sheet in a absolute positioning. But I ain't sure if there is a borderRadius it would work properly.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Still an issue
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Up
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
🆙
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Up
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.