muba-posting 3.0.13 → 4.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/Posting.js CHANGED
@@ -380,6 +380,10 @@ export default class Posting extends React.Component {
380
380
  await this.setState({ postingAd: { ...this.state.postingAd, adId: responseJson.adId } });
381
381
  this._goToPage(Views.PREVIEW, null, responseJson);
382
382
  }
383
+
384
+ if (this.props.showRatingPopup) {
385
+ this.props.showRatingPopup();
386
+ }
383
387
  }
384
388
  });
385
389
  }
package/Publish6.js CHANGED
@@ -138,7 +138,7 @@ export default class Publish6 extends React.Component {
138
138
 
139
139
  this.setState({ requiredPhoneError: !validate });
140
140
 
141
- return validate;
141
+ return this.reference.onSubmitValidate() && validate;
142
142
  }
143
143
 
144
144
  setLanguages() {
@@ -180,12 +180,14 @@ export default class Publish6 extends React.Component {
180
180
  <Text style={commonStyles.progressbarField}>{strings('setup.reference')}</Text>
181
181
  <Text style={commonStyles.subNote}> {strings('setup.uniqueReference')}</Text>
182
182
  </View>
183
- <InputText value={this.state.reference}
183
+ <InputText value={this.state.reference} ref={(element) => this.reference = element}
184
184
  placeholder={strings('setup.reference')}
185
185
  required={false} onChangeText={(text) => this.onChangeReference(text)}
186
186
  style={commonStyles.input}
187
187
  textContainerStyle={{ marginTop: 10 }}
188
188
  returnKeyType={"next"}
189
+ maxLength={50}
190
+ notUrl={true}
189
191
  onSubmitEditing={(event) => { this.refs.phoneGroup.focus(); }} />
190
192
  </View>
191
193
 
package/commonStyles.js CHANGED
@@ -1016,7 +1016,7 @@ export default StyleSheet.create({
1016
1016
  fontSize: 22,
1017
1017
  color: '#858585',
1018
1018
  fontFamily: 'PostingLight',
1019
- marginTop: Platform.OS === 'ios' ? 0 : 4
1019
+ marginTop: 0
1020
1020
  },
1021
1021
 
1022
1022
  /*----------Radio Button Group----------*/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muba-posting",
3
- "version": "3.0.13",
3
+ "version": "4.0.2",
4
4
  "description": "Posting",
5
5
  "main": "Posting.js",
6
6
  "scripts": {
@@ -18,20 +18,20 @@
18
18
  "homepage": "https://github.com/Mubawab/muba-posting#readme",
19
19
  "dependencies": {
20
20
  "@react-native-async-storage/async-storage": "~1.15.0",
21
- "expo-image-manipulator": "~9.2.2",
22
- "muba-custom-scroll-view": "3",
23
- "muba-display-price": "3",
24
- "muba-font": "3",
25
- "muba-i18n": "3",
26
- "muba-input-select": "3",
27
- "muba-input-text": "3",
28
- "muba-loading-cursor": "3",
29
- "muba-map": "3",
30
- "muba-output-text": "3",
31
- "muba-phone-group": "3",
32
- "muba-picture": "3",
33
- "muba-popup-advice": "3",
34
- "muba-popup-permissions": "3",
35
- "muba-radio-button-group": "3"
21
+ "expo-image-manipulator": "~10.2.0",
22
+ "muba-custom-scroll-view": "4",
23
+ "muba-display-price": "4",
24
+ "muba-font": "4",
25
+ "muba-i18n": "4",
26
+ "muba-input-select": "4",
27
+ "muba-input-text": "4.1.0",
28
+ "muba-loading-cursor": "4",
29
+ "muba-map": "4",
30
+ "muba-output-text": "4",
31
+ "muba-phone-group": "4",
32
+ "muba-picture": "4",
33
+ "muba-popup-advice": "4",
34
+ "muba-popup-permissions": "4",
35
+ "muba-radio-button-group": "4"
36
36
  }
37
37
  }