Page MenuHomePhabricator

D11855.diff
No OneTemporary

D11855.diff

diff --git a/native/community-settings/tag-farcaster-channel/tag-farcaster-channel-by-name.react.js b/native/community-settings/tag-farcaster-channel/tag-farcaster-channel-by-name.react.js
new file mode 100644
--- /dev/null
+++ b/native/community-settings/tag-farcaster-channel/tag-farcaster-channel-by-name.react.js
@@ -0,0 +1,22 @@
+// @flow
+
+import * as React from 'react';
+
+import type { TagFarcasterChannelNavigationProp } from './tag-farcaster-channel-navigator.react.js';
+import type { NavigationRoute } from '../../navigation/route-names.js';
+
+export type TagFarcasterChannelByNameParams = {
+ +communityID: string,
+};
+
+type Props = {
+ +navigation: TagFarcasterChannelNavigationProp<'TagFarcasterChannelByName'>,
+ +route: NavigationRoute<'TagFarcasterChannelByName'>,
+};
+
+// eslint-disable-next-line no-unused-vars
+function TagFarcasterChannelByName(prop: Props): React.Node {
+ return null;
+}
+
+export default TagFarcasterChannelByName;
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
@@ -8,10 +8,12 @@
import * as React from 'react';
import { SafeAreaView } from 'react-native-safe-area-context';
+import TagFarcasterChannelByName from './tag-farcaster-channel-by-name.react.js';
import TagFarcasterChannel from './tag-farcaster-channel.react.js';
import type { RootNavigationProp } from '../../navigation/root-navigator.react';
import {
TagFarcasterChannelRouteName,
+ TagFarcasterChannelByNameRouteName,
type TagFarcasterChannelParamList,
type ScreenParamList,
} from '../../navigation/route-names.js';
@@ -29,10 +31,6 @@
StackNavigationHelpers<ScreenParamList>,
>();
-const tagFarcasterChannelOptions = {
- headerTitle: 'Tag a Farcaster channel',
-};
-
type Props = {
+navigation: RootNavigationProp<'TagFarcasterChannelNavigator'>,
...
@@ -54,6 +52,7 @@
headerStyle: {
backgroundColor: colors.modalBackground,
},
+ headerTitle: 'Tag a Farcaster channel',
}),
[colors.modalBackground, colors.panelForegroundLabel],
);
@@ -65,7 +64,10 @@
<TagFarcasterChannelStack.Screen
name={TagFarcasterChannelRouteName}
component={TagFarcasterChannel}
- options={tagFarcasterChannelOptions}
+ />
+ <TagFarcasterChannelStack.Screen
+ name={TagFarcasterChannelByNameRouteName}
+ component={TagFarcasterChannelByName}
/>
</TagFarcasterChannelStack.Navigator>
</SafeAreaView>
diff --git a/native/navigation/route-names.js b/native/navigation/route-names.js
--- a/native/navigation/route-names.js
+++ b/native/navigation/route-names.js
@@ -36,6 +36,7 @@
import type { TextMessageTooltipModalParams } from '../chat/text-message-tooltip-modal.react.js';
import type { TogglePinModalParams } from '../chat/toggle-pin-modal.react.js';
import type { CommunityCreationMembersScreenParams } from '../community-creation/community-creation-members.react.js';
+import type { TagFarcasterChannelByNameParams } from '../community-settings/tag-farcaster-channel/tag-farcaster-channel-by-name.react.js';
import type { TagFarcasterChannelParams } from '../community-settings/tag-farcaster-channel/tag-farcaster-channel.react.js';
import type { ManagePublicLinkScreenParams } from '../invite-links/manage-public-link-screen.react.js';
import type { ViewInviteLinksScreenParams } from '../invite-links/view-invite-links-screen.react.js';
@@ -159,6 +160,7 @@
export const TagFarcasterChannelNavigatorRouteName =
'TagFarcasterChannelNavigator';
export const TagFarcasterChannelRouteName = 'TagFarcasterChannel';
+export const TagFarcasterChannelByNameRouteName = 'TagFarcasterChannelByName';
export type RootParamList = {
+LoggedOutModal: void,
@@ -298,6 +300,7 @@
export type TagFarcasterChannelParamList = {
+TagFarcasterChannel: TagFarcasterChannelParams,
+ +TagFarcasterChannelByName: TagFarcasterChannelByNameParams,
};
export type QRCodeSignInParamList = {

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 24, 9:28 PM (10 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2701042
Default Alt Text
D11855.diff (4 KB)

Event Timeline