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

29 lines
570 B
JavaScript
Raw Normal View History

2017-07-04 22:57:25 +00:00
import React from 'react'
import { View, Text, StyleSheet } from 'react-native'
2017-07-04 23:22:19 +00:00
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-04 22:57:25 +00:00
)
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center'
}
})