@poolse/react-native 2.1.2 → 2.1.3
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.cjs
CHANGED
|
@@ -1452,9 +1452,9 @@ function UploadQueueStrip() {
|
|
|
1452
1452
|
{
|
|
1453
1453
|
onPress: handleClose,
|
|
1454
1454
|
hitSlop: 8,
|
|
1455
|
-
style:
|
|
1455
|
+
style: styles8.closeBtn,
|
|
1456
1456
|
accessibilityLabel: isError ? "Remove failed upload" : "Cancel upload",
|
|
1457
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(PoolseIcon, { name: "close", size: 11, color:
|
|
1457
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PoolseIcon, { name: "close", size: 11, color: "#fff" })
|
|
1458
1458
|
}
|
|
1459
1459
|
) : null,
|
|
1460
1460
|
isUploading ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles8.progressOverlay, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles8.spinner, { borderColor: theme.colors.onBrand }] }) }) : null,
|
|
@@ -1589,6 +1589,7 @@ var styles8 = reactNative.StyleSheet.create({
|
|
|
1589
1589
|
borderRadius: 11,
|
|
1590
1590
|
alignItems: "center",
|
|
1591
1591
|
justifyContent: "center",
|
|
1592
|
+
backgroundColor: "rgba(40,40,40,0.85)",
|
|
1592
1593
|
shadowColor: "#000",
|
|
1593
1594
|
shadowOffset: { width: 0, height: 1 },
|
|
1594
1595
|
shadowOpacity: 0.3,
|
|
@@ -1712,7 +1713,7 @@ var MessageComposer = react.forwardRef(
|
|
|
1712
1713
|
}, [editingMessage?.id, editingMessage?.body]);
|
|
1713
1714
|
const isEditing = !!editingMessage;
|
|
1714
1715
|
const editChanged = isEditing && value.trim() !== (editingMessage?.body?.trim() ?? "");
|
|
1715
|
-
const submitDisabled = disabled || sending || isUploading || value.trim().length === 0
|
|
1716
|
+
const submitDisabled = disabled || sending || isUploading || (isEditing ? !editChanged || value.trim().length === 0 : value.trim().length === 0 && readyAttachmentIds.length === 0);
|
|
1716
1717
|
const handleSend = async () => {
|
|
1717
1718
|
if (submitDisabled) return;
|
|
1718
1719
|
const body = value.trim();
|