Skip to content

Commit 00f0374

Browse files
joshuapintergitim
authored andcommitted
Turn kitties into cards on Android.
1 parent 212fbaa commit 00f0374

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

examples/Basic/index.js

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -140,17 +140,17 @@ const styles = StyleSheet.create({
140140
justifyContent: 'center',
141141
alignItems: 'center',
142142

143-
...Platform.select({
144-
ios: {
143+
// ...Platform.select({
144+
// ios: {
145145
backgroundColor: '#eee',
146146
paddingTop: 60,
147-
},
147+
// },
148148

149-
android: {
150-
backgroundColor: '#fff',
151-
paddingTop: 0,
152-
},
153-
}),
149+
// android: {
150+
// backgroundColor: '#fff',
151+
// paddingTop: 0,
152+
// },
153+
// }),
154154
},
155155

156156
list: {
@@ -159,33 +159,32 @@ const styles = StyleSheet.create({
159159

160160
contentContainer: {
161161
width: window.width,
162-
paddingHorizontal: Platform.OS === 'ios' ? 30 : 0,
162+
paddingHorizontal: 30,
163163
},
164164

165165
row: {
166166
flexDirection: 'row',
167167
alignItems: 'center',
168168
backgroundColor: '#fff',
169169
padding: 16,
170-
171170
height: 80,
171+
flex: 1,
172+
marginVertical: 5,
173+
borderRadius: 4,
174+
width: window.width - 30 * 2,
172175

173176
...Platform.select({
174177
ios: {
175-
width: window.width - 30 * 2,
176-
marginVertical: 5,
177-
borderRadius: 4,
178178
shadowColor: 'rgba(0,0,0,0.2)',
179179
shadowOpacity: 1,
180180
shadowOffset: {height: 2, width: 2},
181181
shadowRadius: 2,
182182
},
183183

184184
android: {
185-
width: window.width,
186-
borderTopWidth: StyleSheet.hairlineWidth,
187-
borderBottomWidth: StyleSheet.hairlineWidth,
188-
borderColor: '#e5e5e5',
185+
elevation: 2,
186+
// marginHorizontal: 10,
187+
// borderColor: '#e5e5e5',
189188
},
190189
})
191190
},

0 commit comments

Comments
 (0)