react-native-firebase/example/demo/app.js

33 lines
581 B
JavaScript
Raw Normal View History

2017-07-05 13:22:39 +00:00
import React from 'react';
import {
View,
Text,
StyleSheet
} from 'react-native';
import firebase from './lib/firebase';
2017-07-04 22:57:25 +00:00
export default class App extends React.Component {
render () {
return (
<View
style={styles.container}
>
<Text>
Successfully imported and running react-native-firebase.
</Text>
<Text>
Running app: {firebase.apps}
</Text>
</View>
2017-07-05 13:22:39 +00:00
);
2017-07-04 22:57:25 +00:00
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center'
}
2017-07-05 13:22:39 +00:00
});