This repository has been archived on 2025-06-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
dusken-client/native-base-theme/components/Card.js
T
2017-08-18 00:13:33 +02:00

29 lines
664 B
JavaScript

import variable from "./../variables/platform";
export default (variables = variable) => {
const cardTheme = {
".transparent": {
shadowColor: null,
shadowOffset: null,
shadowOpacity: null,
shadowRadius: null,
elevation: null
},
marginVertical: 5,
marginHorizontal: 2,
flex: 1,
borderWidth: variables.borderWidth,
borderRadius: 2,
borderColor: variables.cardBorderColor,
flexWrap: "wrap",
backgroundColor: variables.cardDefaultBg,
shadowColor: "#000",
shadowOffset: { width: 0, height: 2 },
shadowOpacity: 0.1,
shadowRadius: 1.5,
elevation: 3
};
return cardTheme;
};