react-crud-mobile 1.0.885 → 1.0.887

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.
@@ -653,6 +653,19 @@ function UISlider(props) {
653
653
  var step = scope.attr('step', 1);
654
654
  var min = scope.attr('min', 0);
655
655
  var max = scope.attr('min', 100);
656
+ var onSlideScroll = function onSlideScroll(scrollEnabled) {
657
+ var viewScope = reactCrudUtils.ComponentUtils.getViewScope();
658
+ if (scope.original.debug) {
659
+ console.log(viewScope);
660
+ }
661
+ if (viewScope) {
662
+ var _scrollRef$current;
663
+ var scrollRef = viewScope.get('scrollRef');
664
+ if (scrollRef) (_scrollRef$current = scrollRef.current) == null || _scrollRef$current.setNativeProps == null || _scrollRef$current.setNativeProps({
665
+ scrollEnabled: scrollEnabled
666
+ });
667
+ }
668
+ };
656
669
  return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
657
670
  children: /*#__PURE__*/jsxRuntime.jsx(Slider, {
658
671
  minimumValue: min,
@@ -662,6 +675,12 @@ function UISlider(props) {
662
675
  maximumTrackTintColor: "#d3d3d3",
663
676
  thumbTintColor: "#1EB1FC",
664
677
  value: value,
678
+ onSlidingStart: function onSlidingStart() {
679
+ return onSlideScroll(false);
680
+ },
681
+ onSlidingComplete: function onSlidingComplete() {
682
+ return onSlideScroll(true);
683
+ },
665
684
  style: _extends({
666
685
  width: '100%',
667
686
  height: 40
@@ -1404,6 +1423,7 @@ function UIModal(props) {
1404
1423
  paddingBottom: 50
1405
1424
  },
1406
1425
  style: style('modalContent'),
1426
+ nestedScrollEnabled: true,
1407
1427
  ref: scrollRef,
1408
1428
  children: /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
1409
1429
  style: {
@@ -1496,6 +1516,7 @@ function UIView(_ref) {
1496
1516
  onScroll: onScroll,
1497
1517
  scrollEventThrottle: 16,
1498
1518
  ref: scrollRef,
1519
+ nestedScrollEnabled: true,
1499
1520
  keyboardShouldPersistTaps: "handled",
1500
1521
  contentContainerStyle: scope.getStyle('contentContainer', {
1501
1522
  paddingBottom: 50