fix: vertically center label on iOS

This commit is contained in:
Satyajit Sahoo
2018-06-04 16:35:58 +02:00
parent a5a01e27d9
commit 233bf45244
2 changed files with 6 additions and 0 deletions

View File

@@ -260,6 +260,7 @@ const styles = StyleSheet.create({
},
text: {
height: 24,
lineHeight: 24,
textAlignVertical: 'center',
marginVertical: 4,
},

View File

@@ -95,6 +95,7 @@ exports[`renders chip with icon 1`] = `
Array [
Object {
"height": 24,
"lineHeight": 24,
"marginVertical": 4,
"textAlignVertical": "center",
},
@@ -196,6 +197,7 @@ exports[`renders chip with onPress 1`] = `
Array [
Object {
"height": 24,
"lineHeight": 24,
"marginVertical": 4,
"textAlignVertical": "center",
},
@@ -332,6 +334,7 @@ exports[`renders deletable chip 1`] = `
Array [
Object {
"height": 24,
"lineHeight": 24,
"marginVertical": 4,
"textAlignVertical": "center",
},
@@ -433,6 +436,7 @@ exports[`renders outlined disabled chip 1`] = `
Array [
Object {
"height": 24,
"lineHeight": 24,
"marginVertical": 4,
"textAlignVertical": "center",
},
@@ -569,6 +573,7 @@ exports[`renders selected chip 1`] = `
Array [
Object {
"height": 24,
"lineHeight": 24,
"marginVertical": 4,
"textAlignVertical": "center",
},