调整了明星原创详情箭头在android机器上未对齐、逛tag显示被裁减的问题。review by yuliang。
Showing
2 changed files
with
5 additions
and
3 deletions
@@ -13,6 +13,7 @@ const { | @@ -13,6 +13,7 @@ const { | ||
13 | ListView, | 13 | ListView, |
14 | Dimensions, | 14 | Dimensions, |
15 | TouchableOpacity, | 15 | TouchableOpacity, |
16 | + Platform, | ||
16 | } = ReactNative; | 17 | } = ReactNative; |
17 | 18 | ||
18 | 19 | ||
@@ -71,7 +72,7 @@ let styles = StyleSheet.create({ | @@ -71,7 +72,7 @@ let styles = StyleSheet.create({ | ||
71 | top: 20, | 72 | top: 20, |
72 | left: 10, | 73 | left: 10, |
73 | width: 20, | 74 | width: 20, |
74 | - height: 20, | 75 | + height: Platform.OS === 'ios' ? 20 : 22, |
75 | marginRight: 0, | 76 | marginRight: 0, |
76 | }, | 77 | }, |
77 | tagContainer: { | 78 | tagContainer: { |
@@ -88,7 +89,7 @@ let styles = StyleSheet.create({ | @@ -88,7 +89,7 @@ let styles = StyleSheet.create({ | ||
88 | marginRight: 13, | 89 | marginRight: 13, |
89 | marginTop: 20, | 90 | marginTop: 20, |
90 | marginBottom: 0, | 91 | marginBottom: 0, |
91 | - height: 20, | 92 | + height: Platform.OS === 'ios' ? 20 : 22, |
92 | textDecorationLine:'underline' | 93 | textDecorationLine:'underline' |
93 | }, | 94 | }, |
94 | }); | 95 | }); |
@@ -13,6 +13,7 @@ import ReactNative, { | @@ -13,6 +13,7 @@ import ReactNative, { | ||
13 | StyleSheet, | 13 | StyleSheet, |
14 | Image, | 14 | Image, |
15 | Dimensions, | 15 | Dimensions, |
16 | + Platform, | ||
16 | TouchableOpacity, | 17 | TouchableOpacity, |
17 | } from 'react-native'; | 18 | } from 'react-native'; |
18 | import Immutable, {Map} from 'immutable'; | 19 | import Immutable, {Map} from 'immutable'; |
@@ -130,7 +131,7 @@ let styles = StyleSheet.create({ | @@ -130,7 +131,7 @@ let styles = StyleSheet.create({ | ||
130 | color: '#bbbbbb', | 131 | color: '#bbbbbb', |
131 | }, | 132 | }, |
132 | moreArrow: { | 133 | moreArrow: { |
133 | - marginTop: 5 * DEVICE_WIDTH_RATIO, | 134 | + marginTop: Platform.OS === 'ios' ? 5 * DEVICE_WIDTH_RATIO : 7 * DEVICE_WIDTH_RATIO, |
134 | marginLeft: 15 * DEVICE_WIDTH_RATIO, | 135 | marginLeft: 15 * DEVICE_WIDTH_RATIO, |
135 | marginRight: 15 * DEVICE_WIDTH_RATIO, | 136 | marginRight: 15 * DEVICE_WIDTH_RATIO, |
136 | }, | 137 | }, |
-
Please register or login to post a comment