react-crud-mobile 1.3.396 → 1.3.397
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/dist/react-crud-mobile.cjs.development.js +7 -1
- package/dist/react-crud-mobile.cjs.development.js.map +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js.map +1 -1
- package/dist/react-crud-mobile.esm.js +8 -2
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +3 -2
- package/src/elements/core/UIView.tsx +9 -2
|
@@ -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,7 +1660,12 @@ function UIView(_ref) {
|
|
|
1659
1660
|
}
|
|
1660
1661
|
});
|
|
1661
1662
|
};
|
|
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
|
+
}, []));
|
|
1668
|
+
//v5
|
|
1663
1669
|
scope.put('scrollRef', scrollRef);
|
|
1664
1670
|
reactCrudUtils.ComponentUtils.setViewScope(scope);
|
|
1665
1671
|
var Container = function Container() {
|