react-crud-mobile 1.3.376 → 1.3.378
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 +5 -10
- 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 +5 -10
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIOrder.tsx +9 -10
package/package.json
CHANGED
@@ -194,9 +194,6 @@ export default function UIOrder(props: ChildType) {
|
|
194
194
|
|
195
195
|
return (
|
196
196
|
<View style={styles.container}>
|
197
|
-
<Text style={styles.title}>
|
198
|
-
Lista Dragável (Esperando que a correção final funcione 🙏)
|
199
|
-
</Text>
|
200
197
|
<View style={{ height: items.length * ITEM_HEIGHT, width: '100%' }}>
|
201
198
|
{items.map(item => {
|
202
199
|
const y = positions[item.value];
|
@@ -224,12 +221,14 @@ export default function UIOrder(props: ChildType) {
|
|
224
221
|
<Text style={styles.handleText}>≡</Text>
|
225
222
|
</View>
|
226
223
|
<Text style={styles.itemText}>{item.label}</Text>
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
224
|
+
{scope.original.remove && (
|
225
|
+
<TouchableOpacity
|
226
|
+
onPress={() => removeItem(item.value)}
|
227
|
+
style={styles.del}
|
228
|
+
>
|
229
|
+
<Text style={{ color: '#fff' }}>X</Text>
|
230
|
+
</TouchableOpacity>
|
231
|
+
)}
|
233
232
|
</Animated.View>
|
234
233
|
);
|
235
234
|
})}
|
@@ -239,7 +238,7 @@ export default function UIOrder(props: ChildType) {
|
|
239
238
|
}
|
240
239
|
|
241
240
|
const styles = StyleSheet.create({
|
242
|
-
container: { flex: 1
|
241
|
+
container: { flex: 1 },
|
243
242
|
title: { fontSize: 18, fontWeight: '600', marginBottom: 12 },
|
244
243
|
item: {
|
245
244
|
backgroundColor: '#fff',
|