mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-24 04:24:52 +08:00
[skip ci] docs - database stub
This commit is contained in:
38
docs/database/quick-start.md
Normal file
38
docs/database/quick-start.md
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
title: Quick Start
|
||||
description: Get to grips with the basics of Realtime Database in React Native Firebase
|
||||
---
|
||||
|
||||
# Realtime Database Quick Start
|
||||
|
||||
## Installation
|
||||
|
||||
Install this module with Yarn:
|
||||
|
||||
```bash
|
||||
yarn add @react-native-firebase/database
|
||||
```
|
||||
|
||||
> Integrating manually and not via React Native auto-linking? Check the setup instructions for <Anchor version group href="/android">Android</Anchor> & <Anchor version group href="/ios">iOS</Anchor>.
|
||||
|
||||
## Module usage
|
||||
|
||||
Once installed, import the Cloud Functions package into your project:
|
||||
|
||||
```js
|
||||
import database from '@react-native-firebase/database';
|
||||
```
|
||||
|
||||
The package also provides access to the firebase instance:
|
||||
|
||||
```js
|
||||
import { firebase } from '@react-native-firebase/database';
|
||||
```
|
||||
|
||||
### Read and Write Data
|
||||
|
||||
### Realtime Data Sync
|
||||
|
||||
### FlatList and lists of data
|
||||
|
||||
### Enable Offline Capabilities
|
||||
Reference in New Issue
Block a user