React Native Gesture Handler(ScrollView) not Working

143 Views Asked by At

Error: NativeViewGestureHandler must be used as a descendant of GestureHandlerRootView. Otherwise the gestures will not be recognized. See https://docs.swmansion.com/react-native-gesture-handler/docs/installation for more details.

Any Solution for this?

I have tried many methods but no use... Looking forward some relatable answers...

1

There are 1 best solutions below

0
Mahammad Momin On

you need to wrap with GestureHandlerRootView

import { GestureHandlerRootView } from 'react-native-gesture-handler';

export default function App() {
    return (
        <GestureHandlerRootView>
            {/* Your entire application components */}
        </GestureHandlerRootView>
    );
}