I tried this command:
dotenv -t .env
It creates a file and then inside that file I pasted the env variables. Then used them as:
const supabaseUrl = global.env.EXPO_PUBLIC_SUPABASE_URL!;
const supabaseAnonKey = global.env.EXPO_PUBLIC_SUPABASE_ANON_KEY!;