Component - Cloud Storage
This UI component lets users upload and view files stored in the cloud. It shows a list of files and a button to add new files, making cloud storage easy to use on mobile.
This UI component lets users upload and view files stored in the cloud. It shows a list of files and a button to add new files, making cloud storage easy to use on mobile.
View ├─ FlatList │ └─ FileItem (for each file) └─ Button
What is the main purpose of Cloud Storage in a React Native app?
Which of the following is the correct way to create a reference to a file named image.jpg in Cloud Storage?
const storage = getStorage();
const ref = ?What will the following code do?
const storage = getStorage();
const fileRef = ref(storage, 'docs/report.pdf');
await uploadBytes(fileRef, fileData);
const url = await getDownloadURL(fileRef);
console.log(url);Identify the error in this code snippet for uploading a file:
const storage = getStorage();
const fileRef = ref(storage, 'photos/pic.png');
uploadFile(fileRef, fileData);
const url = await getDownloadURL(fileRef);
console.log(url);You want to upload a profile picture and then immediately show it in your app. Which sequence of steps is correct?
uploadBytesgetDownloadURLPass the test and this pattern moves unknown