瀏覽代碼

small ui reactions fix

Viktoriia 8 月之前
父節點
當前提交
60dbb2f312
共有 1 個文件被更改,包括 26 次插入36 次删除
  1. 26 36
      src/screens/InAppScreens/MessagesScreen/ChatScreen/index.tsx

+ 26 - 36
src/screens/InAppScreens/MessagesScreen/ChatScreen/index.tsx

@@ -820,45 +820,35 @@ const ChatScreen = ({ route }: { route: any }) => {
 
     return (
       <View
-        style={[
-          currentMessage.reactions &&
-          Array.isArray(currentMessage.reactions) &&
-          currentMessage.reactions.length > 0
-            ? { paddingBottom: 15 }
-            : {}
-        ]}
+        ref={(ref) => {
+          if (ref && currentMessage) {
+            messageRefs.current[currentMessage._id] = ref;
+          }
+        }}
+        collapsable={false}
       >
-        <View
-          ref={(ref) => {
-            if (ref && currentMessage) {
-              messageRefs.current[currentMessage._id] = ref;
+        <Bubble
+          {...props}
+          wrapperStyle={{
+            right: {
+              backgroundColor: backgroundColor
+            },
+            left: {
+              backgroundColor: backgroundColor
             }
           }}
-          collapsable={false}
-        >
-          <Bubble
-            {...props}
-            wrapperStyle={{
-              right: {
-                backgroundColor: backgroundColor
-              },
-              left: {
-                backgroundColor: backgroundColor
-              }
-            }}
-            textStyle={{
-              left: {
-                color: Colors.DARK_BLUE
-              },
-              right: {
-                color: Colors.FILL_LIGHT
-              }
-            }}
-            onLongPress={() => handleLongPress(currentMessage, props)}
-            renderTicks={() => null}
-            renderTime={renderTimeContainer}
-          />
-        </View>
+          textStyle={{
+            left: {
+              color: Colors.DARK_BLUE
+            },
+            right: {
+              color: Colors.FILL_LIGHT
+            }
+          }}
+          onLongPress={() => handleLongPress(currentMessage, props)}
+          renderTicks={() => null}
+          renderTime={renderTimeContainer}
+        />
       </View>
     );
   };