Complete the code to import the Firebase storage module in React Native.
import storage from '@react-native-firebase/[1]';
The Firebase storage module is imported using '@react-native-firebase/storage'.
Complete the code to get a reference to a file named 'image.jpg' in Firebase Storage.
const reference = storage().ref('[1]');
The ref() method takes the file path as a string. 'image.jpg' is the correct relative path.
Fix the error in the code to upload a file to Firebase Storage using React Native.
await reference.[1](filePath);The correct method to upload a local file in React Native Firebase Storage is putFile().
Fill both blanks to download the URL of a stored file and log it.
const url = await reference.[1](); console.[2](url);
getDownloadURL() fetches the file URL, and console.log() prints it to the console.
Fill all three blanks to delete a file from Firebase Storage and handle errors.
try { await reference.[1](); console.[2]('File deleted'); } catch (error) { console.[3]('Delete failed', error); }
The delete() method removes the file. console.log() shows success, and console.error() shows errors.