@mpxjs/api-proxy 2.10.4-beta.4 → 2.10.4-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -32,8 +32,7 @@ const styles = StyleSheet.create({
|
|
|
32
32
|
alignItems: 'center'
|
|
33
33
|
},
|
|
34
34
|
toastHasIcon: {
|
|
35
|
-
|
|
36
|
-
width: 120
|
|
35
|
+
width: 140
|
|
37
36
|
},
|
|
38
37
|
toastImg: {
|
|
39
38
|
width: 40,
|
|
@@ -46,8 +45,6 @@ const styles = StyleSheet.create({
|
|
|
46
45
|
color: '#ffffff',
|
|
47
46
|
fontSize: 12,
|
|
48
47
|
lineHeight: 18,
|
|
49
|
-
height: 18,
|
|
50
|
-
overflow: 'hidden',
|
|
51
48
|
marginTop: 10
|
|
52
49
|
}
|
|
53
50
|
})
|
|
@@ -80,7 +77,7 @@ function showToast (options = {}) {
|
|
|
80
77
|
ToastView = <View style={[styles.toastWrap, { pointerEvents }]}>
|
|
81
78
|
<View style={[styles.toastContent, styles.toastHasIcon]}>
|
|
82
79
|
<Image style={ styles.toastImg } source={{ uri: image || iconImg[icon] }}></Image>
|
|
83
|
-
{ title ? <Text style={styles.toastText}>{title}</Text> : null }
|
|
80
|
+
{ title ? <Text numberOfLines={2} style={styles.toastText}>{title}</Text> : null }
|
|
84
81
|
</View>
|
|
85
82
|
</View>
|
|
86
83
|
} else if (icon === 'loading') {
|
|
@@ -91,7 +88,7 @@ function showToast (options = {}) {
|
|
|
91
88
|
size='small'
|
|
92
89
|
color='#eee'
|
|
93
90
|
/>
|
|
94
|
-
{ title ? <Text style={styles.toastText}>{title}</Text> : null }
|
|
91
|
+
{ title ? <Text numberOfLines={2} style={styles.toastText}>{title}</Text> : null }
|
|
95
92
|
</View>
|
|
96
93
|
</View>
|
|
97
94
|
} else {
|
|
@@ -102,7 +99,6 @@ function showToast (options = {}) {
|
|
|
102
99
|
...styles.toastText,
|
|
103
100
|
...(icon === 'none'
|
|
104
101
|
? {
|
|
105
|
-
height: 'auto',
|
|
106
102
|
marginTop: 0
|
|
107
103
|
}
|
|
108
104
|
: {})
|