react-crud-mobile 1.3.74 → 1.3.76
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 +1 -20
- 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 +1 -20
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UISelect.tsx +1 -7
- package/src/elements/core/UIView.tsx +3 -13
|
@@ -492,20 +492,6 @@ function UIButton(props) {
|
|
|
492
492
|
});
|
|
493
493
|
}
|
|
494
494
|
|
|
495
|
-
//import { ThemeUtils, Utils } from 'react-crud-utils';
|
|
496
|
-
//import { StatusBar } from 'react-native';
|
|
497
|
-
var MobileUtils = /*#__PURE__*/function () {
|
|
498
|
-
function MobileUtils() {}
|
|
499
|
-
MobileUtils.syncTheme = function syncTheme() {
|
|
500
|
-
// let current = ThemeUtils.getCurrentTheme();
|
|
501
|
-
//let dec: any = { light: 'light-content', dark: 'dark-content' };
|
|
502
|
-
//let name = Utils.nvl(dec[current?.theme], dec.light);
|
|
503
|
-
//StatusBar.setBarStyle?.(name);
|
|
504
|
-
//StatusBar.setBackgroundColor?.(current?.colors?.theme);
|
|
505
|
-
};
|
|
506
|
-
return MobileUtils;
|
|
507
|
-
}();
|
|
508
|
-
|
|
509
495
|
function UISelect(props) {
|
|
510
496
|
var _theme$styles, _theme$colors, _scope$original, _scope$original2;
|
|
511
497
|
var _useState = React.useState(false),
|
|
@@ -547,9 +533,6 @@ function UISelect(props) {
|
|
|
547
533
|
return modalVisible;
|
|
548
534
|
};
|
|
549
535
|
//v4
|
|
550
|
-
React.useEffect(function () {
|
|
551
|
-
MobileUtils.syncTheme();
|
|
552
|
-
}, [modalVisible]);
|
|
553
536
|
return /*#__PURE__*/jsxRuntime.jsxs(reactNative.View, {
|
|
554
537
|
style: style('selectRoot'),
|
|
555
538
|
children: [/*#__PURE__*/jsxRuntime.jsxs(reactNative.TouchableOpacity, {
|
|
@@ -1564,9 +1547,6 @@ function UIView(_ref) {
|
|
|
1564
1547
|
children = _ref.children;
|
|
1565
1548
|
var scrollRef = React.useRef(null);
|
|
1566
1549
|
var original = scope.original;
|
|
1567
|
-
React.useEffect(function () {
|
|
1568
|
-
MobileUtils.syncTheme();
|
|
1569
|
-
}, []);
|
|
1570
1550
|
var onScroll = function onScroll() {
|
|
1571
1551
|
var crud = reactCrudUtils.ViewUtils.getCrud();
|
|
1572
1552
|
reactCrudUtils.Utils.each(crud.scroll, function (s) {
|
|
@@ -1575,6 +1555,7 @@ function UIView(_ref) {
|
|
|
1575
1555
|
}
|
|
1576
1556
|
});
|
|
1577
1557
|
};
|
|
1558
|
+
//v3
|
|
1578
1559
|
scope.put('scrollRef', scrollRef);
|
|
1579
1560
|
reactCrudUtils.ComponentUtils.setViewScope(scope);
|
|
1580
1561
|
var Container = function Container() {
|