Changeset View
Changeset View
Standalone View
Standalone View
native/chat/chat.react.js
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | import { | ||||
HomeChatThreadListRouteName, | HomeChatThreadListRouteName, | ||||
BackgroundChatThreadListRouteName, | BackgroundChatThreadListRouteName, | ||||
type ScreenParamList, | type ScreenParamList, | ||||
type ChatParamList, | type ChatParamList, | ||||
type ChatTopTabsParamList, | type ChatTopTabsParamList, | ||||
MessageSearchRouteName, | MessageSearchRouteName, | ||||
ChangeRolesScreenRouteName, | ChangeRolesScreenRouteName, | ||||
} from '../navigation/route-names.js'; | } from '../navigation/route-names.js'; | ||||
import ChangeRolesHeaderLeftButton from '../roles/change-roles-header-left-button.react.js'; | |||||
import ChangeRolesScreen from '../roles/change-roles-screen.react.js'; | import ChangeRolesScreen from '../roles/change-roles-screen.react.js'; | ||||
import MessageSearch from '../search/message-search.react.js'; | import MessageSearch from '../search/message-search.react.js'; | ||||
import SearchHeader from '../search/search-header.react.js'; | import SearchHeader from '../search/search-header.react.js'; | ||||
import SearchMessagesButton from '../search/search-messages-button.react.js'; | import SearchMessagesButton from '../search/search-messages-button.react.js'; | ||||
import { useColors, useStyles } from '../themes/colors.js'; | import { useColors, useStyles } from '../themes/colors.js'; | ||||
const unboundStyles = { | const unboundStyles = { | ||||
keyboardAvoidingView: { | keyboardAvoidingView: { | ||||
▲ Show 20 Lines • Show All 209 Lines • ▼ Show 20 Lines | headerTitleContainerStyle: { | ||||
width: '100%', | width: '100%', | ||||
}, | }, | ||||
}; | }; | ||||
const messageResultsScreenOptions = { | const messageResultsScreenOptions = { | ||||
headerTitle: 'Pinned Messages', | headerTitle: 'Pinned Messages', | ||||
headerBackTitleVisible: false, | headerBackTitleVisible: false, | ||||
}; | }; | ||||
const changeRolesScreenOptions = { | const changeRolesScreenOptions = { | ||||
// eslint-disable-next-line react/display-name | |||||
headerLeft: headerLeftProps => ( | |||||
<ChangeRolesHeaderLeftButton {...headerLeftProps} /> | |||||
), | |||||
headerTitle: 'Change Role', | headerTitle: 'Change Role', | ||||
presentation: 'modal', | presentation: 'modal', | ||||
}; | }; | ||||
export type ChatNavigationProp< | export type ChatNavigationProp< | ||||
RouteName: $Keys<ChatParamList> = $Keys<ChatParamList>, | RouteName: $Keys<ChatParamList> = $Keys<ChatParamList>, | ||||
> = { | > = { | ||||
...StackNavigationProp<ScreenParamList, RouteName>, | ...StackNavigationProp<ScreenParamList, RouteName>, | ||||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |