react-crud-mobile 1.3.377 → 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.377",
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",
@@ -221,12 +221,14 @@ export default function UIOrder(props: ChildType) {
221
221
  <Text style={styles.handleText}>≡</Text>
222
222
  </View>
223
223
  <Text style={styles.itemText}>{item.label}</Text>
224
- <TouchableOpacity
225
- onPress={() => removeItem(item.value)}
226
- style={styles.del}
227
- >
228
- <Text style={{ color: '#fff' }}>X</Text>
229
- </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
+ )}
230
232
  </Animated.View>
231
233
  );
232
234
  })}
@@ -236,7 +238,7 @@ export default function UIOrder(props: ChildType) {
236
238
  }
237
239
 
238
240
  const styles = StyleSheet.create({
239
- container: { flex: 1, paddingHorizontal: 20, backgroundColor: '#f5f7fb' },
241
+ container: { flex: 1 },
240
242
  title: { fontSize: 18, fontWeight: '600', marginBottom: 12 },
241
243
  item: {
242
244
  backgroundColor: '#fff',