TypeError: Cannot read properties of undefined (reading 'PropsAllowlists')

329 Views Asked by At

Used navigation, reanimated and drawer versions:

    "@react-navigation/drawer": "^6.6.6",
    "@react-navigation/native": "^6.1.9",
    "@react-navigation/native-stack": "^6.9.12",
    "react-native-reanimated": "^3.6.1",

This error is thrown while I toggle the drawer and this error can be minimized and then I continue the further process. But I want to know the permanent resolution.enter image description here

Github iOS Issue

Another error on iOS

1

There are 1 best solutions below

1
user23331087 On

This fixes this issue. When the emulator is overloaded with cache, your error occurs.

rm -rf node_modules && npm cache clean --force && npm install && watchman watch-del-all && rm -rf $TMPDIR/haste-map-* && rm -rf $TMPDIR/metro-cache 

After that, run:

react-native start --reset-cache