Showing
3 changed files
with
6 additions
and
9 deletions
1 | import React, { Component } from 'react'; | 1 | import React, { Component } from 'react'; |
2 | import { | 2 | import { |
3 | Text, | 3 | Text, |
4 | + Image, | ||
4 | View, | 5 | View, |
5 | Dimensions, | 6 | Dimensions, |
6 | StyleSheet, | 7 | StyleSheet, |
@@ -19,7 +20,7 @@ function ShareButton(props) { | @@ -19,7 +20,7 @@ function ShareButton(props) { | ||
19 | props.shareAction && props.shareAction(props.rowData); | 20 | props.shareAction && props.shareAction(props.rowData); |
20 | }} | 21 | }} |
21 | > | 22 | > |
22 | - <Text style={styles.shareButtonText}>去分享</Text> | 23 | + <Image source={require('../../images/message_share.png')} style={styles.shareButtonImage}></Image> |
23 | </TouchableOpacity> | 24 | </TouchableOpacity> |
24 | ) | 25 | ) |
25 | } | 26 | } |
@@ -139,16 +140,12 @@ let styles = StyleSheet.create({ | @@ -139,16 +140,12 @@ let styles = StyleSheet.create({ | ||
139 | height: 14 | 140 | height: 14 |
140 | }, | 141 | }, |
141 | shareButton: { | 142 | shareButton: { |
142 | - width: 60, | ||
143 | - height: 30, | ||
144 | - borderRadius: 3, | ||
145 | - backgroundColor: '#D0021B', | 143 | + width: 15 * DEVICE_WIDTH_RATIO, |
144 | + height: 15 * DEVICE_WIDTH_RATIO, | ||
146 | justifyContent: 'center' | 145 | justifyContent: 'center' |
147 | }, | 146 | }, |
148 | - shareButtonText: { | ||
149 | - fontSize: 14, | ||
150 | - color: 'white', | ||
151 | - textAlign: 'center', | 147 | + shareButtonImage: { |
148 | + flex: 1 | ||
152 | } | 149 | } |
153 | }); | 150 | }); |
154 | 151 |
js/alliance/images/message_share@2x.png
0 → 100644
![](/mobile/YH_RNComponent/raw/95bbf9aa64c0e04b47f71e321dd5bf36dd8b7225/js/alliance/images/message_share@2x.png)
919 Bytes
js/alliance/images/message_share@3x.png
0 → 100644
![](/mobile/YH_RNComponent/raw/95bbf9aa64c0e04b47f71e321dd5bf36dd8b7225/js/alliance/images/message_share@3x.png)
1.39 KB
-
Please register or login to post a comment