diff --git a/native/chat/composed-message-constants.js b/native/chat/composed-message-constants.js new file mode 100644 --- /dev/null +++ b/native/chat/composed-message-constants.js @@ -0,0 +1,3 @@ +// @flow + +export const clusterEndHeight = 7; diff --git a/native/chat/composed-message.react.js b/native/chat/composed-message.react.js --- a/native/chat/composed-message.react.js +++ b/native/chat/composed-message.react.js @@ -13,6 +13,7 @@ import { type Colors, useColors } from '../themes/colors'; import type { ChatMessageInfoItemWithHeight } from '../types/chat-types'; import { type AnimatedStyleObj, AnimatedView } from '../types/styles'; +import { clusterEndHeight } from './composed-message-constants'; import { useComposedMessageMaxWidth } from './composed-message-width'; import { FailedSend } from './failed-send.react'; import { @@ -29,8 +30,6 @@ const { Node } = Animated; /* eslint-enable import/no-named-as-default-member */ -const clusterEndHeight = 7; - type SwipeOptions = 'reply' | 'sidebar' | 'both' | 'none'; type BaseProps = { ...React.ElementConfig, @@ -221,4 +220,4 @@ ); }, ); -export { ConnectedComposedMessage as ComposedMessage, clusterEndHeight }; +export { ConnectedComposedMessage as ComposedMessage }; diff --git a/native/chat/message-header.react.js b/native/chat/message-header.react.js --- a/native/chat/message-header.react.js +++ b/native/chat/message-header.react.js @@ -8,7 +8,7 @@ import { SingleLine } from '../components/single-line.react'; import { useStyles } from '../themes/colors'; import type { ChatMessageInfoItemWithHeight } from '../types/chat-types'; -import { clusterEndHeight } from './composed-message.react'; +import { clusterEndHeight } from './composed-message-constants'; import type { DisplayType } from './timestamp.react'; import { Timestamp, timestampHeight } from './timestamp.react'; diff --git a/native/chat/multimedia-message-utils.js b/native/chat/multimedia-message-utils.js --- a/native/chat/multimedia-message-utils.js +++ b/native/chat/multimedia-message-utils.js @@ -10,7 +10,7 @@ ChatMultimediaMessageInfoItem, MultimediaContentSizes, } from '../types/chat-types'; -import { clusterEndHeight } from './composed-message.react'; +import { clusterEndHeight } from './composed-message-constants'; import { failedSendHeight } from './failed-send.react'; import { inlineSidebarMarginBottom, diff --git a/native/chat/utils.js b/native/chat/utils.js --- a/native/chat/utils.js +++ b/native/chat/utils.js @@ -26,7 +26,7 @@ import type { LayoutCoordinates, VerticalBounds } from '../types/layout-types'; import type { AnimatedViewStyle } from '../types/styles'; import { ChatContext, useHeightMeasurer } from './chat-context'; -import { clusterEndHeight } from './composed-message.react'; +import { clusterEndHeight } from './composed-message-constants'; import { failedSendHeight } from './failed-send.react'; import { inlineSidebarHeight,