I need a particular style to apply only for android and needs to have no effect when on iOS.
My code snippet is somewhat like this:
<CardItem
style={{
borderWidth: 0,
borderLeftWidth: 0,
borderRightWidth: 0,
borderTopLeftRadius: 10,
borderTopRightRadius: 10,
borderBottomLeftRadius: 0,
borderBottomRightRadius: 0,
backgroundColor: "#fff",
overflow: Platform.OS == "ios" ? "hidden":"auto"
}}
cardBody
>
I need the overflow to be hidden only on iOS and needs no effect when on android. I have used overflow: Platform.OS == "ios" ? "hidden":"auto", but this doesn't look apt for the scenario.
overflow: Platform.OS == "ios" && "hidden"