Changeset View
Changeset View
Standalone View
Standalone View
native/chat/chat.react.js
Show First 20 Lines • Show All 290 Lines • ▼ Show 20 Lines | const messageSearchOptions = { | ||||
headerTitleContainerStyle: { | headerTitleContainerStyle: { | ||||
width: '100%', | width: '100%', | ||||
}, | }, | ||||
}; | }; | ||||
const messageResultsScreenOptions = { | const messageResultsScreenOptions = { | ||||
headerTitle: 'Pinned Messages', | headerTitle: 'Pinned Messages', | ||||
headerBackTitleVisible: false, | headerBackTitleVisible: false, | ||||
}; | }; | ||||
const changeRolesScreenOptions = { | const changeRolesScreenOptions = ({ route }) => ({ | ||||
// eslint-disable-next-line react/display-name | // eslint-disable-next-line react/display-name | ||||
headerLeft: headerLeftProps => ( | headerLeft: headerLeftProps => ( | ||||
<ChangeRolesHeaderLeftButton {...headerLeftProps} /> | <ChangeRolesHeaderLeftButton {...headerLeftProps} route={route} /> | ||||
), | ), | ||||
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>, | ||||
...ChatRouterNavigationHelpers, | ...ChatRouterNavigationHelpers, | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 123 Lines • Show Last 20 Lines |