Files
react-native-firebase/docs/database/ios.md
2019-10-03 14:09:09 +01:00

40 lines
824 B
Markdown

---
title: iOS Setup
description: Manually integrate Realtime Database into your iOS application.
---
# iOS Manual Linking
## Manual iOS Integration via CocoaPods
> The following steps are only required if your environment does not have access to React Native
> auto-linking.
## CocoaPods Installation
### Add the RNFBAnalytics Pod
Add the `RNFBDatabase` Pod to your projects `/ios/Podfile`:
```ruby{3}
target 'app' do
...
pod 'RNFBDatabase', :path => '../node_modules/@react-native-firebase/database'
end
```
### Update Pods & rebuild the project
You may need to update your local Pods in order for the `RNFBDatabase` Pod to be installed in your project:
```bash
$ cd /ios/
$ pod install --repo-update
```
Once the Pods have installed locally, rebuild your iOS project:
```bash
npx react-native run-ios
```