react-native-firebase/tests-new/app.js

33 lines
631 B
JavaScript
Executable File

/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
// must import before all else
import Bridge from './bridge/env/rn';
import React, { Component } from 'react';
import { AppRegistry, Text, View } from 'react-native';
import firebase from './firebase';
class Root extends Component {
constructor(props) {
super(props);
this.state = {};
Bridge.provideRoot(this);
Bridge.provideModule(firebase);
}
render() {
return (
<View>
<Text>React Native Firebase Test App</Text>
</View>
);
}
}
AppRegistry.registerComponent('testing', () => Root);