Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3695086
D11559.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D11559.diff
View Options
diff --git a/native/components/connect-farcaster-bottom-sheet.react.js b/native/components/connect-farcaster-bottom-sheet.react.js
new file mode 100644
--- /dev/null
+++ b/native/components/connect-farcaster-bottom-sheet.react.js
@@ -0,0 +1,28 @@
+// @flow
+
+import * as React from 'react';
+
+import BottomSheet from '../bottom-sheet/bottom-sheet.react.js';
+import type { RootNavigationProp } from '../navigation/root-navigator.react.js';
+import type { NavigationRoute } from '../navigation/route-names.js';
+
+type Props = {
+ +navigation: RootNavigationProp<'ConnectFarcasterBottomSheet'>,
+ +route: NavigationRoute<'ConnectFarcasterBottomSheet'>,
+};
+
+function ConnectFarcasterBottomSheet(props: Props): React.Node {
+ const { navigation } = props;
+
+ const { goBack } = navigation;
+
+ const bottomSheetRef = React.useRef(null);
+
+ return (
+ <BottomSheet ref={bottomSheetRef} onClosed={goBack}>
+ {null}
+ </BottomSheet>
+ );
+}
+
+export default ConnectFarcasterBottomSheet;
diff --git a/native/navigation/root-navigator.react.js b/native/navigation/root-navigator.react.js
--- a/native/navigation/root-navigator.react.js
+++ b/native/navigation/root-navigator.react.js
@@ -52,6 +52,7 @@
QRCodeSignInNavigatorRouteName,
UserProfileBottomSheetNavigatorRouteName,
KeyserverSelectionBottomSheetRouteName,
+ ConnectFarcasterBottomSheetRouteName,
} from './route-names.js';
import LoggedOutModal from '../account/logged-out-modal.react.js';
import RegistrationNavigator from '../account/registration/registration-navigator.react.js';
@@ -65,6 +66,7 @@
import SidebarListModal from '../chat/sidebar-list-modal.react.js';
import SubchannelsListModal from '../chat/subchannels-list-modal.react.js';
import CommunityCreationNavigator from '../community-creation/community-creation-navigator.react.js';
+import ConnectFarcasterBottomSheet from '../components/connect-farcaster-bottom-sheet.react.js';
import InviteLinksNavigator from '../invite-links/invite-links-navigator.react.js';
import CustomServerModal from '../profile/custom-server-modal.react.js';
import KeyserverSelectionBottomSheet from '../profile/keyserver-selection-bottom-sheet.react.js';
@@ -284,6 +286,11 @@
component={KeyserverSelectionBottomSheet}
options={modalOverlayScreenOptions}
/>
+ <Root.Screen
+ name={ConnectFarcasterBottomSheetRouteName}
+ component={ConnectFarcasterBottomSheet}
+ options={modalOverlayScreenOptions}
+ />
</Root.Navigator>
);
}
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
@@ -149,6 +149,8 @@
'KeyserverSelectionBottomSheet';
export const AccountDoesNotExistRouteName = 'AccountDoesNotExist';
export const FarcasterAccountSettingsRouteName = 'FarcasterAccountSettings';
+export const ConnectFarcasterBottomSheetRouteName =
+ 'ConnectFarcasterBottomSheet';
export type RootParamList = {
+LoggedOutModal: void,
@@ -172,6 +174,7 @@
+UserProfileBottomSheetNavigator: void,
+TunnelbrokerMenu: void,
+KeyserverSelectionBottomSheet: KeyserverSelectionBottomSheetParams,
+ +ConnectFarcasterBottomSheet: void,
};
export type MessageTooltipRouteNames =
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 8, 10:37 AM (1 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2816523
Default Alt Text
D11559.diff (3 KB)
Attached To
Mode
D11559: [native] introduce barebones connect farcaster bottom sheet to root navigator
Attached
Detach File
Event Timeline
Log In to Comment