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

33 lines
644 B
JavaScript
Raw Normal View History

2018-03-23 13:40:07 +00:00
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
2018-03-24 02:02:59 +00:00
// must import before all else
import Bridge from './bridge/env/rn';
2018-03-23 13:40:07 +00:00
import React, { Component } from 'react';
2018-03-24 02:02:59 +00:00
import { AppRegistry, Text, View } from 'react-native';
2018-03-23 13:40:07 +00:00
2018-03-24 02:02:59 +00:00
import firebase from './firebase';
2018-03-23 22:18:19 +00:00
class Root extends Component {
2018-03-23 13:40:07 +00:00
constructor(props) {
super(props);
2018-03-23 22:18:19 +00:00
this.state = {};
2018-03-24 02:02:59 +00:00
Bridge.provideRoot(this);
Bridge.provideModule(firebase);
2018-03-23 13:40:07 +00:00
}
2018-03-23 22:18:19 +00:00
render() {
2018-03-23 13:40:07 +00:00
return (
2018-03-23 22:18:19 +00:00
<View>
2018-03-24 05:53:49 +00:00
<Text testID="tap">React Native Firebase Test App</Text>
2018-03-23 13:40:07 +00:00
</View>
);
}
}
2018-03-23 22:18:19 +00:00
AppRegistry.registerComponent('testing', () => Root);