Q: Cannot read property 'array' of undefined error occurring in my genymotion while running my react-native project I recently upgraded an old project that was running in react-native 0.49 to 0.55. So after installing and running the project this pops up. I searched the internet and i did not found any solution. Please help.


A: Solved. For anyone like me facing this issue. Check your red box and you can see the module where the error is targeting. In my case it was DoctorTiming.js (Check the image in my question. One error is pointing towards it). 


*

*Go to that module check if it is importing from any dependencies.

*If it does go to node_modules/your_dependency

*Check for index.js.

*Inside it change import PropTypes from 'react'  to   import PropTypes from 'prop-types'.
You are good to go after that.
