muba-posting 8.0.0 → 8.0.2
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/Preview.js +12 -19
- package/commonStyles.js +2 -9
- package/package.json +5 -5
package/Preview.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Text, View, TouchableOpacity, ImageBackground
|
|
2
|
+
import { Text, View, TouchableOpacity, ImageBackground } from 'react-native';
|
|
3
|
+
import { Image } from 'expo-image';
|
|
3
4
|
import DisplayPrice from 'muba-display-price'
|
|
4
5
|
import { strings } from 'muba-i18n';
|
|
5
6
|
import commonStyles from './commonStyles';
|
|
@@ -70,26 +71,18 @@ export default class Preview extends React.Component {
|
|
|
70
71
|
</View>
|
|
71
72
|
</View>
|
|
72
73
|
|
|
73
|
-
{this.state.mainPicture !== null
|
|
74
|
-
<
|
|
75
|
-
<ImageBackground style={[commonStyles.previewBox, commonStyles.photoBoxImage]} source={{ uri: this.state.mainPicture }} resizeMode='cover' borderRadius={10}>
|
|
76
|
-
{this.props.postingAd.reference ?
|
|
77
|
-
<View style={commonStyles.previewReference}>
|
|
78
|
-
<Text style={commonStyles.previewTitleText}>{strings('setup.ref')} {this.props.postingAd.reference}</Text>
|
|
79
|
-
</View>
|
|
80
|
-
:
|
|
81
|
-
<View />
|
|
82
|
-
}
|
|
74
|
+
{this.state.mainPicture !== null &&
|
|
75
|
+
<Image style={[commonStyles.previewBox, commonStyles.photoBoxImage]} source={{ uri: this.state.mainPicture }} contentFit='cover' borderRadius={10} /> }
|
|
83
76
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
</
|
|
90
|
-
</ImageBackground>
|
|
77
|
+
<View style={[commonStyles.infoPreview, commonStyles.previewControls, {marginBottom: 10}]}>
|
|
78
|
+
{this.props.postingAd.reference &&
|
|
79
|
+
<Text style={commonStyles.previewTitleText}>{strings('setup.ref')} {this.props.postingAd.reference}</Text>
|
|
80
|
+
}
|
|
81
|
+
<View style={commonStyles.previewTitle}>
|
|
82
|
+
<Text style={commonStyles.previewTitleText}>{this.props.postingAd.languages[0].title}</Text>
|
|
91
83
|
</View>
|
|
92
|
-
:
|
|
84
|
+
<Text style={[commonStyles.subNote, commonStyles.subNotePreview, commonStyles.previewText]}>{this.props.postingAd.languages[0].description != null && this.props.postingAd.languages[0].description.length > 114 ? this.props.postingAd.languages[0].description.substring(0, 114) + '...' : this.props.postingAd.languages[0].description}</Text>
|
|
85
|
+
</View>
|
|
93
86
|
|
|
94
87
|
{this.props.businessId && !this.state.showPaymentOnline ?
|
|
95
88
|
<View style={commonStyles.promoBox}>
|
package/commonStyles.js
CHANGED
|
@@ -858,19 +858,12 @@ export default StyleSheet.create({
|
|
|
858
858
|
previewTitleText: {
|
|
859
859
|
fontFamily: 'PostingMedium',
|
|
860
860
|
fontSize: 19,
|
|
861
|
-
color: '#
|
|
862
|
-
textShadowColor: '#333333',
|
|
863
|
-
textShadowOffset: { width: -1, height: 1 },
|
|
864
|
-
textShadowRadius: 4,
|
|
865
|
-
lineHeight: 21,
|
|
861
|
+
color: '#858585',
|
|
866
862
|
textAlign: 'left'
|
|
867
863
|
},
|
|
868
864
|
|
|
869
865
|
previewText: {
|
|
870
|
-
color: '#
|
|
871
|
-
textShadowColor: '#333333',
|
|
872
|
-
textShadowOffset: { width: -1, height: 1 },
|
|
873
|
-
textShadowRadius: 4,
|
|
866
|
+
color: '#858585',
|
|
874
867
|
textAlign: 'left'
|
|
875
868
|
},
|
|
876
869
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "muba-posting",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.2",
|
|
4
4
|
"description": "Posting",
|
|
5
5
|
"main": "Posting.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
"homepage": "https://github.com/Mubawab/muba-posting#readme",
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@react-native-async-storage/async-storage": "1.21.0",
|
|
21
|
-
"muba-custom-scroll-view": "
|
|
22
|
-
"muba-display-price": "
|
|
21
|
+
"muba-custom-scroll-view": "8",
|
|
22
|
+
"muba-display-price": "8",
|
|
23
23
|
"muba-font": "8",
|
|
24
|
-
"muba-i18n": "
|
|
24
|
+
"muba-i18n": "8",
|
|
25
25
|
"muba-input-select": "8",
|
|
26
26
|
"muba-input-text": "8",
|
|
27
27
|
"muba-loading-cursor": "8",
|
|
28
28
|
"muba-map": "8",
|
|
29
|
-
"muba-output-text": "
|
|
29
|
+
"muba-output-text": "8",
|
|
30
30
|
"muba-phone-group": "8",
|
|
31
31
|
"muba-picture": "8",
|
|
32
32
|
"muba-payment-online": "8",
|