Raphael
Raphael

Reputation: 131

React Navigation: Warning react-native-gesture-handler

What intended doing

  1. create react-native with expo
  2. add React Navigation

The first work well

the second task have warnings

Steps in the Second task

  1. Install React Navigation

    npm install react-navigation --legacy-peer-deps

  2. Install Dependencies

    expo install react-native-gesture-handler react-native-reanimated react-native-screens react-native-safe-area-context @react-native-community/masked-view

  3. Install React Navigation Stack

    npm install react-navigation-stack @react-native-community/masked-view --legacy-peer-deps

  4. Start the app and clear cache with expo r -c

Warning Logs

Compiled with warnings. C:/Users/GBENGE AONDOAKULA/Documents/Node/food/node_modules/react-native-gesture-handler/lib/module/index.js "export 'ComposedGestureType' (reexported as 'ComposedGesture') was not found in './handlers/gestures/gestureComposition'

node_modules/react-native-gesture-handler/lib/module/index.js "export 'ComposedGestureType' (reexported as 'ComposedGesture') was not found in './handlers/gestures/gestureComposition'

node_modules/react-native-gesture-handler/lib/module/index.js "export 'ExclusiveGestureType' (reexported as 'ExclusiveGesture') was not found in './handlers/gestures/gestureComposition'

node_modules/react-native-gesture-handler/lib/module/index.js "export 'FlingGestureType' (reexported as 'FlingGesture') was not found in './handlers/gestures/flingGesture'

node_modules/react-native-gesture-handler/lib/module/index.js "export 'ForceTouchGestureType' (reexported as 'ForceTouchGesture') was not found in './handlers/gestures/forceTouchGesture'

node_modules/react-native-gesture-handler/lib/module/index.js "export 'GestureStateManagerType' (reexported as 'GestureStateManager') was not found in './handlers/gestures/gestureStateManager'

node_modules/react-native-gesture-handler/lib/module/index.js "export 'LongPressGestureType' (reexported as 'LongPressGesture') was not found in './handlers/gestures/longPressGesture'

node_modules/react-native-gesture-handler/lib/module/index.js "export 'ManualGestureType' (reexported as 'ManualGesture') was not found in './handlers/gestures/manualGesture'

Upvotes: 0

Views: 1763

Answers (1)

AliRehman7141
AliRehman7141

Reputation: 993

Try to downgrade the version of react-native-gesture-handler to 1.10.3. It works for me.

npm install [email protected]

Upvotes: 0

Related Questions