react-crud-mobile 1.3.409 → 1.3.412

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.
@@ -1,6 +1,6 @@
1
1
  import React, { useState, useRef, useEffect, useContext, useLayoutEffect, createContext } from 'react';
2
2
  import { Utils, ScopeUtils, CrudUtils, ComponentUtils, HtmlUtils, ViewUtils, ThemeUtils, useTheme } from 'react-crud-utils';
3
- import { View, StyleSheet, TouchableOpacity, Text, Linking, TouchableHighlight, Modal, ScrollView, Switch, TextInput, Platform, Dimensions, Animated, PanResponder, Alert, Image, StatusBar, KeyboardAvoidingView, TouchableWithoutFeedback, Keyboard } from 'react-native';
3
+ import { View, StyleSheet, TouchableOpacity, Text, Linking, TouchableHighlight, Modal, ScrollView, Switch, TextInput, Platform, Dimensions, FlatList, Animated, PanResponder, Alert, Image, StatusBar, KeyboardAvoidingView, TouchableWithoutFeedback, Keyboard } from 'react-native';
4
4
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
5
5
  import Ionicons from '@expo/vector-icons/Ionicons';
6
6
  import { Ionicons as Ionicons$1, AntDesign, Entypo, EvilIcons, MaterialCommunityIcons } from '@expo/vector-icons';
@@ -1068,7 +1068,7 @@ function UIList(props) {
1068
1068
  var add = ComponentUtils.getDefine(props, 'add');
1069
1069
  var hideAddWhenEmpty = original.hideAddWhenEmpty;
1070
1070
  var hideEmpty = original.hideEmpty;
1071
- //v2
1071
+ //v4
1072
1072
  var getStyle = function getStyle(key, extra) {
1073
1073
  return scope.getStyle(key, _extends({}, extra, styles[key]));
1074
1074
  };
@@ -1150,13 +1150,18 @@ function UIList(props) {
1150
1150
  }
1151
1151
  return /*#__PURE__*/jsxs(View, {
1152
1152
  style: getContainerStyle(),
1153
- children: [/*#__PURE__*/jsx(Empty, {}), items.map(function (item, i) {
1154
- return /*#__PURE__*/jsx(UIListRow, {
1155
- index: i,
1156
- item: item,
1157
- scope: scope,
1158
- children: props.children
1159
- });
1153
+ children: [/*#__PURE__*/jsx(Empty, {}), /*#__PURE__*/jsx(FlatList, {
1154
+ data: items,
1155
+ renderItem: function renderItem(_ref) {
1156
+ var item = _ref.item,
1157
+ index = _ref.index;
1158
+ return /*#__PURE__*/jsx(UIListRow, {
1159
+ index: index,
1160
+ item: item,
1161
+ scope: scope,
1162
+ children: props.children
1163
+ });
1164
+ }
1160
1165
  }), isShowAdd() && /*#__PURE__*/jsx(Fragment, {
1161
1166
  children: add
1162
1167
  })]