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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-crud-mobile",
3
- "version": "1.3.376",
3
+ "version": "1.3.378",
4
4
  "license": "MIT",
5
5
  "description": "Uma biblioteca de componentes para React Native v1",
6
6
  "main": "dist/index.js",
@@ -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
- <TouchableOpacity
228
- onPress={() => removeItem(item.value)}
229
- style={styles.del}
230
- >
231
- <Text style={{ color: '#fff' }}>X</Text>
232
- </TouchableOpacity>
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, paddingHorizontal: 20, backgroundColor: '#f5f7fb' },
241
+ container: { flex: 1 },
243
242
  title: { fontSize: 18, fontWeight: '600', marginBottom: 12 },
244
243
  item: {
245
244
  backgroundColor: '#fff',