fix(ios): wrap the app in GestureHandlerRootView (swipeable list crashed) - #114
Merged
Conversation
…hed)
Opening any record list on iOS threw a redbox: "PanGestureHandler must be used
as a descendant of GestureHandlerRootView" (from SwipeableRow's swipe actions).
react-native-gesture-handler requires a GestureHandlerRootView at the app root
on iOS, which the root layout was missing. Wrap the whole tree in
<GestureHandlerRootView style={{ flex: 1 }}>.
Found via iPhone 17 simulator testing (the list never crashed on web). Verified
on device: the All Tasks list now renders — coloured status badges and the
localized record count included — with no redbox. 1298 tests pass, lint clean.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Found via iOS Simulator testing
Opening any record list on iOS threw a redbox:
…from
SwipeableRow(the list rows' swipe-to-edit/delete actions).react-native-gesture-handlerrequires aGestureHandlerRootViewat the app root on iOS, and the root layout didn't have one. Never reproduced on web.Fix
Wrap the whole tree in
<GestureHandlerRootView style={{ flex: 1 }}>inapp/_layout.tsx.Verified on device
The All Tasks list now renders on the iPhone 17 simulator with no redbox — and that one screen confirms three fixes together:
1298 tests pass, lint clean.
🤖 Generated with Claude Code