Changeset View
Changeset View
Standalone View
Standalone View
native/chat/robotext-message.react.js
Show All 25 Lines | |||||
import { AnimatedView } from '../types/styles.js'; | import { AnimatedView } from '../types/styles.js'; | ||||
type Props = { | type Props = { | ||||
...React.ElementConfig<typeof View>, | ...React.ElementConfig<typeof View>, | ||||
+item: ChatRobotextMessageInfoItemWithHeight, | +item: ChatRobotextMessageInfoItemWithHeight, | ||||
+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, | ||||
}; | }; | ||||
function RobotextMessage(props: Props): React.Node { | function RobotextMessage(props: Props): React.Node { | ||||
const { | const { | ||||
item, | item, | ||||
navigation, | navigation, | ||||
▲ Show 20 Lines • Show All 175 Lines • Show Last 20 Lines |