In my case, the issue was resolved after I deleted the existing build on my simulator and rebuilt the app following the deletion and reinstallation of node_modules.
node_modules