Skip to content

Commit ef0aed6

Browse files
committed
add scan qr npub
1 parent a216166 commit ef0aed6

File tree

9 files changed

+1225
-1
lines changed

9 files changed

+1225
-1
lines changed

app/(user-flow)/_layout.tsx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/**
2+
* @fileoverview User Flow Modal Layout
3+
*
4+
* This layout creates a nested stack navigator inside a modal presentation.
5+
* The parent root Stack presents this group as a modal (slides up from bottom).
6+
* Screens within this group push horizontally:
7+
* - profile: Entry point, shows user profile info
8+
* - userMessages: Chat with user (horizontal push)
9+
* - share: Share user's npub via QR (horizontal push)
10+
*
11+
* The first screen shows a close button, subsequent screens show a back button.
12+
*/
13+
14+
import { Stack } from 'expo-router';
15+
import { useTheme } from 'providers/ThemeProvider';
16+
import { createFlowLayoutScreenOptions } from '../../config/flowLayoutOptions';
17+
18+
export default function UserFlowLayout() {
19+
const { getPrimaryColor } = useTheme();
20+
21+
return (
22+
<Stack screenOptions={createFlowLayoutScreenOptions(getPrimaryColor)}>
23+
<Stack.Screen name="profile" options={{ title: 'Profile' }} />
24+
<Stack.Screen name="userMessages" options={{ headerShown: false }} />
25+
<Stack.Screen name="share" options={{ title: 'Share Profile' }} />
26+
</Stack>
27+
);
28+
}
29+

0 commit comments

Comments
 (0)