feat(mobile): native iOS nav bar for the Chat tab#4282
Open
voska wants to merge 2 commits into
Open
Conversation
Wrap the Inbox and My Issues tab roots in native Stacks so they render the iOS large-title nav bar (a UINavigationController feature exposed only by react-native-screens' native stack — the JS bottom-tabs header can't do it). - Inbox / My Issues each become a folder: _layout.tsx (native Stack) + index.tsx - Drop the custom flat <Header>; move its actions into the native headerRight - My Issues' scope toolbar rides as the SectionList ListHeaderComponent so the list sits flush under the bar and the title collapses on scroll - Lists opt in via contentInsetAdjustmentBehavior="automatic"
Wrap the Chat tab in a native Stack (like inbox/ and my-issues/) so it gets a real iOS nav bar — blur material, native title treatment — instead of the JS <Header> bar. Chat is a conversation view, not a list, so it uses an inline title (NOT headerLargeTitle); the session-switcher title button and the new-chat / delete actions move into the native headerTitle / headerRight, configured from the screen via <Stack.Screen options> so they read live state. Offsets the keyboard avoider by the native header height (useHeaderHeight), since the nav bar now lives outside the screen's view tree. Stacked on the large-title-headers PR (same native-header pattern).
|
@voska is attempting to deploy a commit to the IndexLabs Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Gives the Chat tab a real iOS nav bar. Like inbox/ and my-issues/, the screen is wrapped in a native
Stackso it gets the native nav bar (blur material, native title treatment) instead of the JS<Header>bar.Chat is a conversation view, not a list, so it uses an inline title — NOT
headerLargeTitle. The session-switcher title button and the new-chat / delete actions move into the nativeheaderTitle/headerRight, configured from the screen via<Stack.Screen options>so they read live state (active session, current agent, handlers). The keyboard avoider is offset by the native header height (useHeaderHeight) since the nav bar now lives outside the screen's view tree.Type of Change
Changes Made
(tabs)/chat.tsx→(tabs)/chat/_layout.tsx(native Stack) +(tabs)/chat/index.tsx(header moved into native slots; keyboard offset).How to Test
+opens a new chat.Checklist
pnpm typecheckpasses; verified rendering in the iOS SimulatorAI Disclosure
AI tool used: Claude Code. Applied the existing native-stack header pattern to the Chat tab; verified the header + content render in the Simulator.
Screenshots
Native nav bar (session switcher title + new-chat action):
