muba-posting 8.0.4 → 8.0.5

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/EditHead.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import { Text, View, ImageBackground } from 'react-native';
2
+ import { Text, View } from 'react-native';
3
+ import { Image } from 'expo-image';
3
4
  import commonStyles from './commonStyles';
4
5
 
5
6
  export default class EditHead extends React.Component {
@@ -44,17 +45,15 @@ export default class EditHead extends React.Component {
44
45
 
45
46
  render() {
46
47
  return (
47
- <ImageBackground style={{ width: '100%' }} source={{ uri: this.state.mainPictureUrl }} resizeMode='cover'>
48
+ <View style={commonStyles.flex1}>
49
+ <Image style={{ width: '100%', height: 100 }} source={this.state.mainPictureUrl} contentFit='cover' />
48
50
  <View style={commonStyles.editBar}>
49
- {this.props.postingAd.reference && this.props.postingAd.reference != '' ?
51
+ {this.props.postingAd.reference && this.props.postingAd.reference != '' &&
50
52
  <View style={commonStyles.editRef}>
51
53
  <Text style={[commonStyles.editRefText, commonStyles.textLeft]}>REF: {this.props.postingAd.reference}</Text>
52
54
  </View>
53
- :
54
- <View style={commonStyles.editRef}>
55
- <Text style={[commonStyles.editRefText]}></Text>
56
- </View>
57
55
  }
56
+
58
57
  <View style={commonStyles.editTitle}>
59
58
  <Text style={[commonStyles.editTitleText]}>
60
59
  {this.props.postingAd.languages.filter(item => this.props.postingAd.languageId === item.language) > 0
@@ -66,7 +65,7 @@ export default class EditHead extends React.Component {
66
65
  </Text>
67
66
  </View>
68
67
  </View>
69
- </ImageBackground>
68
+ </View>
70
69
  );
71
70
  }
72
71
  }
package/commonStyles.js CHANGED
@@ -1207,7 +1207,8 @@ export default StyleSheet.create({
1207
1207
  /*---------- Edit Bar ----------*/
1208
1208
  editBar: {
1209
1209
  backgroundColor: 'rgba(0, 0, 0, 0.25)',
1210
- paddingBottom: 10
1210
+ position: 'absolute',
1211
+ width: '100%'
1211
1212
  },
1212
1213
 
1213
1214
  editTitle: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muba-posting",
3
- "version": "8.0.4",
3
+ "version": "8.0.5",
4
4
  "description": "Posting",
5
5
  "main": "Posting.js",
6
6
  "scripts": {