react-crud-mobile 1.3.389 → 1.3.391

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.
@@ -15,6 +15,7 @@ var reactNativeSafeAreaContext = require('react-native-safe-area-context');
15
15
  var Slider = _interopDefault(require('@react-native-community/slider'));
16
16
  var Toast = require('react-native-toast-message');
17
17
  var Toast__default = _interopDefault(Toast);
18
+ var native = require('@react-navigation/native');
18
19
 
19
20
  function _extends() {
20
21
  return _extends = Object.assign ? Object.assign.bind() : function (n) {
@@ -1659,6 +1660,11 @@ function UIView(_ref) {
1659
1660
  }
1660
1661
  });
1661
1662
  };
1663
+ native.useFocusEffect(React.useCallback(function () {
1664
+ // executar sempre que a aba for focada
1665
+ // ex: limpar estado, recarregar dados, resetar formulário
1666
+ scope.call('focus');
1667
+ }, []));
1662
1668
  //v3
1663
1669
  scope.put('scrollRef', scrollRef);
1664
1670
  reactCrudUtils.ComponentUtils.setViewScope(scope);
@@ -2502,11 +2508,12 @@ var boxStyle = /*#__PURE__*/reactNative.StyleSheet.create({
2502
2508
  borderColor: '#dedede',
2503
2509
  borderStyle: 'solid',
2504
2510
  backgroundColor: 'white',
2505
- borderRadius: 12,
2511
+ borderRadius: 10,
2506
2512
  width: '100%',
2507
2513
  shadowColor: '#000',
2508
2514
  shadowOpacity: 0.1,
2509
- shadowRadius: 4
2515
+ shadowRadius: 4,
2516
+ elevation: 5
2510
2517
  }
2511
2518
  });
2512
2519
  var box = /*#__PURE__*/_extends({}, boxStyle.box);