mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-22 19:57:51 +08:00
[skip ci] docs / storage
This commit is contained in:
@@ -5,7 +5,41 @@ 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.
|
||||
## Manual Android Integration
|
||||
|
||||
## TODO
|
||||
> The following steps are only required if your environment does not have access to React Native
|
||||
auto-linking.
|
||||
|
||||
#### Add Cloud Storage to Gradle Settings
|
||||
|
||||
**`android/settings.gradle`**:
|
||||
```groovy
|
||||
include ':@react-native-firebase_storage'
|
||||
project(':@react-native-firebase_storage').projectDir = new File(rootProject.projectDir, './../node_modules/@react-native-firebase/storage/android')
|
||||
```
|
||||
|
||||
#### Add Cloud Storage to App Gradle Dependencies
|
||||
|
||||
**`android/app/build.gradle`**:
|
||||
```groovy{4}
|
||||
// ..
|
||||
dependencies {
|
||||
// ..
|
||||
implementation project(path: ":@react-native-firebase_storage")
|
||||
}
|
||||
```
|
||||
|
||||
#### Add Cloud Storage to Main Android Application:
|
||||
|
||||
**`android/app/src/main/java/**/MainApplication.java`**:
|
||||
```java{2,8}
|
||||
// ..
|
||||
import io.invertase.firebase.storage.ReactNativeFirebaseStoragePackage;
|
||||
|
||||
// ..
|
||||
protected List<ReactPackage> getPackages() {
|
||||
return Arrays.asList(
|
||||
new MainReactPackage(),
|
||||
new ReactNativeFirebaseStoragePackage(),
|
||||
// ..
|
||||
```
|
||||
|
||||
@@ -5,7 +5,22 @@ 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.
|
||||
## Manual iOS Integration via CocoaPods
|
||||
|
||||
## TODO
|
||||
> The following steps are only required if your environment does not have access to React Native
|
||||
auto-linking.
|
||||
|
||||
#### Add Cloud Storage Pod
|
||||
|
||||
**`ios/Podfile`**:
|
||||
```ruby{4}
|
||||
// ..
|
||||
target 'app' do
|
||||
// ..
|
||||
pod 'RNFBStorage', :path => '../node_modules/@react-native-firebase/storage/ios'
|
||||
end
|
||||
```
|
||||
|
||||
## Manual iOS Integration via Frameworks
|
||||
|
||||
*TODO*
|
||||
|
||||
Reference in New Issue
Block a user