-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
Milestone
Description
I am trying to write a PriorityBadge
I expected it to render a badge with an elevation shadow. However, on iOS it doesn't render the shadow.
I see that it is failing here on line 40 of src/badge/badge.js.
if (React.isValidElement(component)) {
Component = component;
}Why does this have to be an Element? Why not let it be any Component?
I would suggest something like this for the Component creation
let Component = View;
if (component) {
Component = component
} else if (onPress) {
Component = TouchableOpacity
}
