Files
react-native-firebase/tests/type-test.ts
Mike Diarmid 21a16867fe [v6] Implement ML-Kit Natural Language (#2117)
- Implement ML-Kit Natural Language (#2117)
 - Includes additional refactor changes across other modules for internals api reworking
2019-06-02 17:58:21 +01:00

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();