expo-audio error when hitting play on IOS expo go

Please provide the following:

  1. SDK Version: 49.0.3
  2. Platforms(Android/iOS/web/all): IOS

Hey guys I am pretty new at this and I am having a problem with the expo audio. I have even copied the example code from the docs and I am getting the same error.
I am just using it with expo go. If I open it in the web it works ok but if I open on my iPhone it doesnt work.
The error that i get is Possible Unhandled promise rejection
Type Error: right operand of ‘in’ is not an object
promiseRejectionTrackingOptions.js (45:14)
Can anyone help me get it working?

import React from "react";
import { View, Text, Button } from "react-native";
import { Audio } from "expo-av";

import styles from "./nearbyjobs.style";

const Nearbyjobs = () => {
  const [sound, setSound] = React.useState();

  async function playSound() {
    console.log("Loading Sound");
    const { sound } = await Audio.Sound.createAsync(
    console.log("Playing Sound");
    await sound.playAsync();

  React.useEffect(() => {
    return sound
      ? () => {
          console.log("Unloading Sound");
      : undefined;
  }, [sound]);

  return (
      <Button title='Play Sound' onPress={playSound} />

export default Nearbyjobs;

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.