mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-17 23:04:53 +08:00
33 lines
720 B
Markdown
33 lines
720 B
Markdown
---
|
|
title: Quick Start
|
|
description: Get to grips with the basics of Messaging in React Native Firebase
|
|
---
|
|
|
|
# Messaging Quick Start
|
|
|
|
## Installation
|
|
|
|
Install this module with Yarn:
|
|
|
|
```bash
|
|
yarn add @react-native-firebase/messaging@alpha
|
|
```
|
|
|
|
> 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
|
|
|
|
Import the Messaging package into your project:
|
|
|
|
```js
|
|
import messaging from '@react-native-firebase/messaging';
|
|
```
|
|
|
|
The package also provides access to the firebase instance:
|
|
|
|
```js
|
|
import { firebase } from '@react-native-firebase/messaging';
|
|
```
|
|
|
|
### TODO
|