I'm trying to learn react native by doing some practical. The problem I have is that I'm not able to use the images I stored in Firebase storage. O just don't know how to do it, so I hope you can help me.
I tried this from the official documentation, but is not working and is saying that await can only be used in async function.
 import storage from '@react-native-firebase/storage';
  const url = await storage()
    .ref('images/profile-1.png')
    .getDownloadURL();
 
    