After trying to fix it for two days, i found out, I created metro.config.js manually, so I deleted it again and put below code in terminal
npx expo customize metro.config.js
this generates metro.config.js file for you in the root folder.
then pasted below code in the file
const { getDefaultConfig } = require("expo/metro-config");
const config = getDefaultConfig(__dirname);
// Added this line:
config.resolver.assetExts.push("bin");
module.exports = config;
and it started working