index.android.js 567 Bytes
Newer Older
Libin Lu's avatar
Libin Lu committed
1 2 3 4 5 6 7
/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 * @flow
 */

import React, { Component } from 'react';
Libin Lu's avatar
Libin Lu committed
8
import {registerHeadlessListener} from './app/Listeners';
Libin Lu's avatar
Libin Lu committed
9

Libin Lu's avatar
Libin Lu committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
import {
  AppRegistry,
  StyleSheet,
  Text,
  View
} from 'react-native';

import App from "./app/App";

export default class SimpleFcmClient extends Component {
  render() {
    return (<App />);
  }
}

AppRegistry.registerComponent('SimpleFcmClient', () => SimpleFcmClient);
Libin Lu's avatar
Libin Lu committed
26

Libin Lu's avatar
Libin Lu committed
27
AppRegistry.registerHeadlessTask('RNFirebaseBackgroundMessage', () => registerHeadlessListener);