mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-10 10:00:28 +08:00
- Implement ML-Kit Natural Language (#2117) - Includes additional refactor changes across other modules for internals api reworking
36 lines
863 B
TypeScript
36 lines
863 B
TypeScript
import '@react-native-firebase/storage';
|
|
import '@react-native-firebase/perf';
|
|
import '@react-native-firebase/functions';
|
|
|
|
//
|
|
// const foo = async () => {
|
|
// const task = firebase
|
|
// .app()
|
|
// .storage('gs://foo')
|
|
// .ref('foo')
|
|
// .putFile('');
|
|
//
|
|
// task.on(firebase.storage.TaskEvent.STATE_CHANGED, taskSnapshot => {
|
|
// if (taskSnapshot.state === firebase.storage.TaskState.) {
|
|
// console.log('cancelling task!');
|
|
// taskSnapshot.task.cancel();
|
|
// }
|
|
// });
|
|
//
|
|
// task.catch(e => {
|
|
// return 'bar';
|
|
// });
|
|
//
|
|
// task.then(snapshot => {
|
|
// snapshot.metadata.bucket;
|
|
// return 'foo';
|
|
// });
|
|
//
|
|
// firebase.storage.TaskState.CANCELLED;
|
|
// firebase.storage.TaskEvent.STATE_CHANGED;
|
|
// firebase.perf().newHttpMetric('', 'GET');
|
|
// // firebase.functions.HttpsErrorCode.ABORTED;
|
|
// };
|
|
//
|
|
// foo();
|