Error: Invalid prop `gestureDetectorBridge` supplied to `React.Fragment` while opening a screen on iOS
tboba opened this issue · comments
Description
It seems that PR #1913 has introduced a bug while opening (or going to another) screen. After opening any test from TestsExample and FabricTestExample, I'm receiving an error:
Warning: Invalid prop `gestureDetectorBridge` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.
Screen.Recording.2024-01-15.at.10.29.01.mov
Steps to reproduce
- Open any test case from TestsExample / FabricTestExample
- See that after opening an app / after going to another screen warning appears on the console and on the screen.
Snack or a link to a repository
https://github.com/software-mansion/react-native-screens
Screens version
3.29.0
React Native version
0.73.0
Platforms
iOS
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
Debug mode
Device
iOS simulator
Device model
iPhone 15 Pro (iOS 17.2)
Acknowledgements
Yes
Hey! 👋
The issue doesn't seem to contain a minimal reproduction.
Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?
What's more interesting is that TestScreenAnimation
does not report any warning, so it's probably a matter of wrapping the code with <GestureHandlerRootView style={{ flex: 1 }}>
/ GestureDetectorProvider
.