Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3382918
D11682.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D11682.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D11682: [native] introduce screen options to tag farcaster channel stack navigator
Attached
Detach File
Event Timeline
Log In to Comment