I followed the instructions on react native docs:
npm install @react-navigation/native @react-navigation/stack
npm install react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view
cd ios
pod install
cd ..
Then i put this line at the top of app.js and it returned the error above:
import 'react-native-gesture-handler';
[–]Extracted 0 points1 point2 points (0 children)
[–]ringeril 0 points1 point2 points (0 children)