@poolse/react-native 2.1.2 → 2.1.4
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/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1425,9 +1425,9 @@ function UploadQueueStrip() {
|
|
|
1425
1425
|
{
|
|
1426
1426
|
onPress: handleClose,
|
|
1427
1427
|
hitSlop: 8,
|
|
1428
|
-
style:
|
|
1428
|
+
style: styles8.closeBtn,
|
|
1429
1429
|
accessibilityLabel: isError ? "Remove failed upload" : "Cancel upload",
|
|
1430
|
-
children: /* @__PURE__ */ jsx(PoolseIcon, { name: "close", size: 11, color:
|
|
1430
|
+
children: /* @__PURE__ */ jsx(PoolseIcon, { name: "close", size: 11, color: "#fff" })
|
|
1431
1431
|
}
|
|
1432
1432
|
) : null,
|
|
1433
1433
|
isUploading ? /* @__PURE__ */ jsx(View, { style: styles8.progressOverlay, children: /* @__PURE__ */ jsx(View, { style: [styles8.spinner, { borderColor: theme.colors.onBrand }] }) }) : null,
|
|
@@ -1562,6 +1562,7 @@ var styles8 = StyleSheet.create({
|
|
|
1562
1562
|
borderRadius: 11,
|
|
1563
1563
|
alignItems: "center",
|
|
1564
1564
|
justifyContent: "center",
|
|
1565
|
+
backgroundColor: "rgba(40,40,40,0.85)",
|
|
1565
1566
|
shadowColor: "#000",
|
|
1566
1567
|
shadowOffset: { width: 0, height: 1 },
|
|
1567
1568
|
shadowOpacity: 0.3,
|
|
@@ -1685,7 +1686,7 @@ var MessageComposer = forwardRef(
|
|
|
1685
1686
|
}, [editingMessage?.id, editingMessage?.body]);
|
|
1686
1687
|
const isEditing = !!editingMessage;
|
|
1687
1688
|
const editChanged = isEditing && value.trim() !== (editingMessage?.body?.trim() ?? "");
|
|
1688
|
-
const submitDisabled = disabled || sending || isUploading || value.trim().length === 0
|
|
1689
|
+
const submitDisabled = disabled || sending || isUploading || (isEditing ? !editChanged || value.trim().length === 0 : value.trim().length === 0 && readyAttachmentIds.length === 0);
|
|
1689
1690
|
const handleSend = async () => {
|
|
1690
1691
|
if (submitDisabled) return;
|
|
1691
1692
|
const body = value.trim();
|