Changeset View
Changeset View
Standalone View
Standalone View
native/chat/text-message.react.js
Show All 35 Lines | |||||
import { useShouldRenderEditButton } from '../utils/edit-messages-utils.js'; | import { useShouldRenderEditButton } from '../utils/edit-messages-utils.js'; | ||||
type BaseProps = { | type BaseProps = { | ||||
...React.ElementConfig<typeof View>, | ...React.ElementConfig<typeof View>, | ||||
+item: ChatTextMessageInfoItemWithHeight, | +item: ChatTextMessageInfoItemWithHeight, | ||||
+navigation: | +navigation: | ||||
| ChatNavigationProp<'MessageList'> | | ChatNavigationProp<'MessageList'> | ||||
| AppNavigationProp<'TogglePinModal'> | | AppNavigationProp<'TogglePinModal'> | ||||
| ChatNavigationProp<'MessageResultsScreen'>, | | ChatNavigationProp<'MessageResultsScreen'> | ||||
| ChatNavigationProp<'MessageSearch'>, | |||||
+route: | +route: | ||||
| NavigationRoute<'MessageList'> | | NavigationRoute<'MessageList'> | ||||
| NavigationRoute<'TogglePinModal'> | | NavigationRoute<'TogglePinModal'> | ||||
| NavigationRoute<'MessageResultsScreen'>, | | NavigationRoute<'MessageResultsScreen'> | ||||
| NavigationRoute<'MessageSearch'>, | |||||
+focused: boolean, | +focused: boolean, | ||||
+toggleFocus: (messageKey: string) => void, | +toggleFocus: (messageKey: string) => void, | ||||
+verticalBounds: ?VerticalBounds, | +verticalBounds: ?VerticalBounds, | ||||
+shouldDisplayPinIndicator: boolean, | +shouldDisplayPinIndicator: boolean, | ||||
}; | }; | ||||
type Props = { | type Props = { | ||||
...BaseProps, | ...BaseProps, | ||||
// Redux state | // Redux state | ||||
▲ Show 20 Lines • Show All 240 Lines • Show Last 20 Lines |