diff --git a/docs/storage/android.md b/docs/storage/android.md new file mode 100644 index 00000000..98433a6e --- /dev/null +++ b/docs/storage/android.md @@ -0,0 +1,11 @@ +--- +title: Android Setup +description: Manually integrate Cloud Storage into your Android application. +--- + +# Android Setup + +> The following steps are only required if your environment does not have access to React Native +auto-linking. + +## TODO diff --git a/docs/storage/index.md b/docs/storage/index.md new file mode 100644 index 00000000..f21e9140 --- /dev/null +++ b/docs/storage/index.md @@ -0,0 +1,49 @@ +--- +title: Cloud Storage +description: Cloud Storage for Firebase is a powerful, simple, and cost-effective object storage service built for Google scale +--- + +# Cloud Storage + +React Native Firebase provides native integration with Cloud Storage, providing support to upload and download files +directly from your device and from your Firebase Cloud Storage bucket. + + + +## Getting Started + + + + Install & manage your files with your Firebase storage bucket. + + + TODO + + + The API reference covers everything required to successfully integrate Cloud Storage with your application. + + + +## Learn more + +Our documentation is a great place to start, however if you're looking for more help or want to help others, +check out the resources below: + +- [Stack Overflow](https://stackoverflow.com/questions/tagged/react-native-firebase-storage) +- [Github Issues](https://github.com/invertase/react-native-firebase/issues?utf8=%E2%9C%93&q=is%3Aissue+sort%3Aupdated-desc+label%3Astorage+) +- [Firebase Documentation](https://firebase.google.com/docs/storage?utm_source=invertase&utm_medium=react-native-firebase&utm_campaign=storage) diff --git a/docs/storage/ios.md b/docs/storage/ios.md new file mode 100644 index 00000000..6c82c579 --- /dev/null +++ b/docs/storage/ios.md @@ -0,0 +1,11 @@ +--- +title: iOS Setup +description: Manually integrate Cloud Storage into your iOS application. +--- + +# iOS Setup + +> The following steps are only required if your environment does not have access to React Native +auto-linking. + +## TODO diff --git a/docs/storage/quick-start.md b/docs/storage/quick-start.md new file mode 100644 index 00000000..e7417351 --- /dev/null +++ b/docs/storage/quick-start.md @@ -0,0 +1,36 @@ +--- +title: Quick Start +description: Get to grips with the basics of Cloud Storage in React Native Firebase +--- + +# Cloud Storage Quick Start + +## Installation + +Install this module with Yarn: + +```bash +yarn add @react-native-firebase/storage +``` + +> Integrating manually and not via React Native auto-linking? Check the setup instructions for Android & iOS. + +## Module usage + +Import the Cloud Storage package into your project: + +```js +import storage from '@react-native-firebase/storage'; +``` + +The package also provides access to the firebase instance: + +```js +import { firebase } from '@react-native-firebase/storage'; +``` + +### File uploading + +### File downloading + +### Changing bucket