react-crud-mobile 1.0.646 → 1.0.648
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 +3 -0
- 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 +3 -0
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIListRow.tsx +6 -1
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useRef, useState } from 'react';
|
|
2
|
-
import { ChildType, ScopeUtils, Utils } from 'react-crud-utils';
|
|
2
|
+
import { ChildType, ScopeUtils, Utils, ViewUtils } from 'react-crud-utils';
|
|
3
3
|
import UIChildren from '../UIChildren';
|
|
4
4
|
import {
|
|
5
5
|
Dimensions,
|
|
@@ -36,10 +36,13 @@ export default function UIListRow(props: UIListRowType) {
|
|
|
36
36
|
})
|
|
37
37
|
);
|
|
38
38
|
|
|
39
|
+
const main = ViewUtils.getCrud();
|
|
39
40
|
const targetRef = useRef(null);
|
|
40
41
|
const [visivel, setVisivel] = useState(false);
|
|
41
42
|
|
|
42
43
|
const onScroll = () => {
|
|
44
|
+
console.log(visivel);
|
|
45
|
+
|
|
43
46
|
if (!visivel) {
|
|
44
47
|
const handle = findNodeHandle(targetRef.current);
|
|
45
48
|
if (handle) {
|
|
@@ -56,6 +59,8 @@ export default function UIListRow(props: UIListRowType) {
|
|
|
56
59
|
|
|
57
60
|
row.onScroll = onScroll;
|
|
58
61
|
|
|
62
|
+
main.scroll[row.getName()] = row;
|
|
63
|
+
|
|
59
64
|
const onClick = (item: any) => {
|
|
60
65
|
row.call('click', { value: item, item, edit: true, index });
|
|
61
66
|
};
|