mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-06-13 01:18:59 +08:00
docs(storage): fix minor typo in storage docs (#3807)
The `putFile` docs referenced the wrong variable in the first example
This commit is contained in:
@@ -103,7 +103,7 @@ such as the current upload progress:
|
||||
const task = reference.putFile(pathToFile);
|
||||
|
||||
task.on('state_changed', taskSnapshot => {
|
||||
console.log(`${taskSnapshot.bytesTransferred} transferred out of ${task.totalBytes}`);
|
||||
console.log(`${taskSnapshot.bytesTransferred} transferred out of ${taskSnapshot.totalBytes}`);
|
||||
});
|
||||
|
||||
task.then(() => {
|
||||
|
||||
Reference in New Issue
Block a user