Also if I were unload a audio files from another page could I do it without passing props like this, where clicksound is a audio file. Will this clear clear all the specific sounds from the memory
Unloading stops a Sound. You need to unload the Sound only after it’s done being used. In your first snippet you unload it immediately after starting to play it, which stops it, so you don’t hear anything.
Regarding your second question, store the reference to the Sound object somewhere then call .unloadAsync() on it.
Note that your application may want to play a Sound again. In general it may make sense for you to unload the sound after you are sure you won’t have to play it again, rather than every time it is stopped.