react-crud-mobile 1.0.640 → 1.0.641

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.640",
2
+ "version": "1.0.641",
3
3
  "license": "MIT",
4
4
  "description": "Uma biblioteca de componentes para React Native",
5
5
  "main": "dist/index.js",
@@ -48,6 +48,7 @@
48
48
  "react-dom": "19.0.0",
49
49
  "react-native": "0.79.2",
50
50
  "react-native-gesture-handler": "~2.24.0",
51
+ "react-native-intersection-observer": "^0.2.1",
51
52
  "react-native-reanimated": "~3.17.4",
52
53
  "react-native-safe-area-context": "5.4.0",
53
54
  "react-native-screens": "~4.10.0",
@@ -2,6 +2,7 @@ import React, { useState } from 'react';
2
2
  import { ChildType, ScopeUtils, Utils } from 'react-crud-utils';
3
3
  import UIChildren from '../UIChildren';
4
4
  import { StyleSheet, TouchableHighlight, View } from 'react-native';
5
+ import { InView } from 'react-native-intersection-observer';
5
6
 
6
7
  interface UIListRowType extends ChildType {
7
8
  item: any;
@@ -63,19 +64,21 @@ export default function UIListRow(props: UIListRowType) {
63
64
  );
64
65
  }
65
66
  return (
66
- <TouchableHighlight
67
- key={key}
68
- style={getRowStyle()}
69
- underlayColor={'transparent'}
70
- onPress={e => {
71
- e.stopPropagation();
72
- onClick(item);
73
- }}
74
- >
75
- <UIChildren scope={row} crud={row.crud}>
76
- {props.children}
77
- </UIChildren>
78
- </TouchableHighlight>
67
+ <InView>
68
+ <TouchableHighlight
69
+ key={key}
70
+ style={getRowStyle()}
71
+ underlayColor={'transparent'}
72
+ onPress={e => {
73
+ e.stopPropagation();
74
+ onClick(item);
75
+ }}
76
+ >
77
+ <UIChildren scope={row} crud={row.crud}>
78
+ {props.children}
79
+ </UIChildren>
80
+ </TouchableHighlight>
81
+ </InView>
79
82
  );
80
83
  };
81
84