skip to Main Content

I’ve been getting this error in mac M1 laptop , meanwhile it is fine with my other device
pointerEvents err

I’ve been stuck here and cant fix these error , please help
Also there is this error "Requiring module "node_modules/@react-navigation/drawer/src/views/modern/Drawer.tsx"
I don’t even install drawer in other device and it is fine

Note also when I search globaly for <View pointerEvents='auto' ...> // pointerEvents , there is no such thing , since I never added that too to my view

4

Answers


  1. The error is correct – pointerEvents is not a valid style property. It’s a prop of View. Don’t add it to your styles, set it directly on the View:

      <View pointerEvents='auto' ...>
    

    See the docs for more on how to use pointerEvents. Auto is the default and doesn’t need to be specified.

    Login or Signup to reply.
  2. i was facing the same issue , you can fix it in drawer version "6.1.4". please verify the version on yarn.lock

    Login or Signup to reply.
  3. I commented the pointerEvents: ‘auto’ from the @react-navigation library on this path
    ./node_modules/@react-navigation/drawer/src/views/modern/Overlay.tsx
    error went away. I have the latest version of lib installed.

    Login or Signup to reply.
  4. @react-navigation/drawer v6.5.7 still has same issue. I don’t know which version is buggy. But for me, lowering down to v6.5.0 did the work.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search