Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import BpkTouchableOverlay from 'react-native-bpk-component-touchable-overlay';
import CORNER_STYLES, { defaultCornerStyle } from './BpkCardCornerStyles';
const styles = StyleSheet.create({
card: {
backgroundColor: colorWhite,
borderRadius: borderRadiusSm,
...shadows.base(),
},
cardCornerStyleLarge: {
borderRadius: borderRadiusLg,
},
cardPadded: {
padding: spacingBase,
},
cardFocused: shadows.large(),
cardInner: {
backgroundColor: 'transparent', // otherwise this view's corners would bleed outwith the outer container
},
});
const BpkCard = props => {
const {
children,
cornerStyle,
focused,
padded,
style: userStyle,
innerStyle: userInnerStyle,
...rest
} = props;