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 +4 -0
- package/Publish6.js +4 -2
- package/commonStyles.js +1 -1
- package/package.json +16 -16
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "muba-posting",
|
|
3
|
-
"version": "
|
|
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": "~
|
|
22
|
-
"muba-custom-scroll-view": "
|
|
23
|
-
"muba-display-price": "
|
|
24
|
-
"muba-font": "
|
|
25
|
-
"muba-i18n": "
|
|
26
|
-
"muba-input-select": "
|
|
27
|
-
"muba-input-text": "
|
|
28
|
-
"muba-loading-cursor": "
|
|
29
|
-
"muba-map": "
|
|
30
|
-
"muba-output-text": "
|
|
31
|
-
"muba-phone-group": "
|
|
32
|
-
"muba-picture": "
|
|
33
|
-
"muba-popup-advice": "
|
|
34
|
-
"muba-popup-permissions": "
|
|
35
|
-
"muba-radio-button-group": "
|
|
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
|
}
|