Changeset View
Changeset View
Standalone View
Standalone View
native/chat/chat-context.js
// @flow | // @flow | ||||
import invariant from 'invariant'; | import invariant from 'invariant'; | ||||
import * as React from 'react'; | import * as React from 'react'; | ||||
import type { ChatMessageItem } from 'lib/selectors/chat-selectors.js'; | |||||
import type { SetState } from 'lib/types/hook-types.js'; | import type { SetState } from 'lib/types/hook-types.js'; | ||||
import type { ThreadInfo } from 'lib/types/thread-types.js'; | import type { ThreadInfo } from 'lib/types/thread-types.js'; | ||||
import type { NativeChatMessageItem } from './message-data.react.js'; | |||||
import type { ChatMessageItemWithHeight } from '../types/chat-types.js'; | import type { ChatMessageItemWithHeight } from '../types/chat-types.js'; | ||||
export type MessagesMeasurer = ( | export type MessagesMeasurer = ( | ||||
?$ReadOnlyArray<ChatMessageItem>, | ?$ReadOnlyArray<NativeChatMessageItem>, | ||||
?ThreadInfo, | ?ThreadInfo, | ||||
($ReadOnlyArray<ChatMessageItemWithHeight>) => mixed, | ($ReadOnlyArray<ChatMessageItemWithHeight>) => mixed, | ||||
) => void; | ) => void; | ||||
export type RegisteredMeasurer = { | export type RegisteredMeasurer = { | ||||
+measure: MessagesMeasurer, | +measure: MessagesMeasurer, | ||||
+unregister: () => void, | +unregister: () => void, | ||||
}; | }; | ||||
Show All 32 Lines |