@fto-consult/expo-ui 6.5.2 → 6.5.3

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "6.5.2",
3
+ "version": "6.5.3",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -225,6 +225,7 @@ export default class Field extends AppComponent {
225
225
  this.state.isFieldEditable = true;
226
226
  this.state.isFieldVisible = typeof this.props.visible =='boolean'? this.props.visible : true;
227
227
  this.state.wrapperStyle = this.getMediaQueryUpdateStyle();
228
+ this.state.currentMedia = Dimensions.getDimensionsProps().currentMedia;
228
229
  }
229
230
  validatorBeforeValidate({value,validRule,validParams,event,...rest}){
230
231
  let _result = undefined;
@@ -638,6 +639,7 @@ export default class Field extends AppComponent {
638
639
  return false;
639
640
  }
640
641
  doUpdateMediaQueryStyle(args){
642
+ if(args?.currentMedia === this.state.currentMedia) return null;
641
643
  const wrapperStyle = this.getMediaQueryUpdateStyle(args);
642
644
  this.setState({isMobile:args.isMobile,wrapperStyle});
643
645
  }