Page MenuHomePhabricator

D11682.diff
No OneTemporary

D11682.diff

diff --git a/native/community-settings/tag-farcaster-channel/tag-farcaster-channel-navigator.react.js b/native/community-settings/tag-farcaster-channel/tag-farcaster-channel-navigator.react.js
--- a/native/community-settings/tag-farcaster-channel/tag-farcaster-channel-navigator.react.js
+++ b/native/community-settings/tag-farcaster-channel/tag-farcaster-channel-navigator.react.js
@@ -15,7 +15,7 @@
type TagFarcasterChannelParamList,
type ScreenParamList,
} from '../../navigation/route-names.js';
-import { useStyles } from '../../themes/colors.js';
+import { useStyles, useColors } from '../../themes/colors.js';
const safeAreaEdges = ['bottom'];
@@ -29,6 +29,10 @@
StackNavigationHelpers<ScreenParamList>,
>();
+const tagFarcasterChannelOptions = {
+ headerTitle: 'Tag a Farcaster channel',
+};
+
type Props = {
+navigation: RootNavigationProp<'TagFarcasterChannelNavigator'>,
...
@@ -38,18 +42,35 @@
function TagFarcasterChannelNavigator(props: Props): React.Node {
const styles = useStyles(unboundStyles);
+ const colors = useColors();
+
+ const screenOptions = React.useMemo(
+ () => ({
+ headerBackTitleVisible: false,
+ headerTintColor: colors.panelForegroundLabel,
+ headerLeftContainerStyle: {
+ paddingLeft: 12,
+ },
+ headerStyle: {
+ backgroundColor: colors.modalBackground,
+ },
+ }),
+ [colors.modalBackground, colors.panelForegroundLabel],
+ );
+
const tagFarcasterChannelNavigator = React.useMemo(
() => (
<SafeAreaView edges={safeAreaEdges} style={styles.container}>
- <TagFarcasterChannelStack.Navigator>
+ <TagFarcasterChannelStack.Navigator screenOptions={screenOptions}>
<TagFarcasterChannelStack.Screen
name={TagFarcasterChannelRouteName}
component={TagFarcasterChannel}
+ options={tagFarcasterChannelOptions}
/>
</TagFarcasterChannelStack.Navigator>
</SafeAreaView>
),
- [styles.container],
+ [screenOptions, styles.container],
);
return tagFarcasterChannelNavigator;

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 29, 12:42 PM (20 h, 16 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2597017
Default Alt Text
D11682.diff (2 KB)

Event Timeline