refactor: Extract card style to theme file

This commit is contained in:
nikolark committed 2017-11-06 00:36:32 +01:00
1 parent 4d4eaee98c
commit 101a4143fd
8 files changed
+87 -153

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
import { Platform } from "react-native";
const card = {
borderColor: '#e1e8ee',
borderWidth: 1,
...Platform.select({
ios: {
shadowColor: 'rgba(0,0,0, .2)',
shadowOffset: {height: 0, width: 0},
shadowOpacity: 1,
shadowRadius: 1,
},
android: {
elevation: 1,
},
}),
padding: 8,
margin: 8,
backgroundColor: '#fff',
};
export default {card};