Encounterd this error Error: Unable to resolve module in react native after renaming .js file to .jsx. Fixed it by adding resolver: { sourceExts: ['jsx', 'js'], }, to metro config