Changeset View
Changeset View
Standalone View
Standalone View
native/chat/chat.react.js
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | import { | ||||
BackgroundChatThreadListRouteName, | BackgroundChatThreadListRouteName, | ||||
type ScreenParamList, | type ScreenParamList, | ||||
type ChatParamList, | type ChatParamList, | ||||
type ChatTopTabsParamList, | type ChatTopTabsParamList, | ||||
MessageSearchRouteName, | MessageSearchRouteName, | ||||
} from '../navigation/route-names.js'; | } from '../navigation/route-names.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 { useColors, useStyles } from '../themes/colors.js'; | import { useColors, useStyles } from '../themes/colors.js'; | ||||
const unboundStyles = { | const unboundStyles = { | ||||
keyboardAvoidingView: { | keyboardAvoidingView: { | ||||
flex: 1, | flex: 1, | ||||
}, | }, | ||||
view: { | view: { | ||||
flex: 1, | flex: 1, | ||||
▲ Show 20 Lines • Show All 146 Lines • ▼ Show 20 Lines | headerTitle: props => ( | ||||
isSearchEmpty={isSearchEmpty} | isSearchEmpty={isSearchEmpty} | ||||
{...props} | {...props} | ||||
/> | /> | ||||
), | ), | ||||
headerRight: areSettingsEnabled | headerRight: areSettingsEnabled | ||||
? // This is a render prop, not a component | ? // This is a render prop, not a component | ||||
// eslint-disable-next-line react/display-name | // eslint-disable-next-line react/display-name | ||||
() => ( | () => ( | ||||
// eslint-disable-next-line react-native/no-inline-styles | |||||
kuba: Is disabling lint here necessary? | |||||
<View style={{ flexDirection: 'row' }}> | |||||
<SearchMessagesButton | |||||
threadInfo={route.params.threadInfo} | |||||
navigate={navigation.navigate} | |||||
/> | |||||
<ThreadSettingsButton | <ThreadSettingsButton | ||||
threadInfo={route.params.threadInfo} | threadInfo={route.params.threadInfo} | ||||
navigate={navigation.navigate} | navigate={navigation.navigate} | ||||
/> | /> | ||||
</View> | |||||
) | ) | ||||
: undefined, | : undefined, | ||||
headerBackTitleVisible: false, | headerBackTitleVisible: false, | ||||
headerTitleAlign: isSearchEmpty ? 'center' : 'left', | headerTitleAlign: isSearchEmpty ? 'center' : 'left', | ||||
headerLeftContainerStyle: { width: Platform.OS === 'ios' ? 32 : 40 }, | headerLeftContainerStyle: { width: Platform.OS === 'ios' ? 32 : 40 }, | ||||
}; | }; | ||||
}; | }; | ||||
const composeThreadOptions = { | const composeThreadOptions = { | ||||
▲ Show 20 Lines • Show All 163 Lines • Show Last 20 Lines |
Is disabling lint here necessary?