Closed IB3N closed 1 year ago
@caglardurmus please let me know if you would like this not to be a breaking change - I can add the previous props back in and account for them and throw some developer errors if both props are passed, or create something like a CSS cascading order of priority.
Cascading example: oldProp > new renderProp -> defaultPackageComponent
@IB3N Are these changes already added?
@lucasdzuc I don't think so, this is the PR to merge them right?
Reasons for changes
item
andonPress
orprofileName
as props to the render functions so they can have access to theonClosePress
functiononPress
prop. For example adding a share story button next to the close button like so:customProps
to theIUserStoryItem
enables users to add their own props, which is then useful for rendering a custom text component, for example, say adding the age of a instagram story which can be rendered underneath the users profile name (like instagram)Summary of changes
renderSwipeUpComponent
renderCloseComponent
renderTextComponent
IUserStoryItem.customProps
Important ⚠️