title: Stop Audio expo-av - React Native Expo
body: <p>I am using <strong>Audio</strong> from expo-av in <strong>react-native-expo</strong>.</p>
  <p>I can run the audio using loadAsync method on Audio.sound contructor.</p>
  <p>Although when I try to stop the voice it doesn't stop the voice.</p>
  <p>Following is the minimalistic code snippet. Is this the correct way to stop the sound. I am not able to find the solution for this.</p>
  <pre><code>import React, {useState,  useEffect} from 'react';
  import {  Button } from 'react-native';
  import { Audio } from 'expo-av';
  
  export default function App() {
    const [audioStatus, setAudioStatus] = useState(false)
    const sound = new Audio.Sound();
    
    useEffect(()=&gt;{
      (async () =&gt; {
              console.log('status', audioStatus)
              if (audioStatus) {
                  await sound.loadAsync('https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3')
                  try {
                      await sound.playAsync()
                  } catch (e) {
                      console.log(e)
                  }
              }else {
                  await sound.stopAsync()
                  await sound.unloadAsync()
              }
            })()
    },[audioStatus])
    
    return (
        &lt;Button color={audioStatus ? 'red' : 'green'} title={'play'} onPress={()=&gt;setAudioStatus(!audioStatus)} /&gt;
    );
  }
  
  </code></pre>
  <p>Thanks in Advance</p>