mirror of
https://github.com/zhigang1992/react-native-firebase-starter.git
synced 2026-01-12 22:50:21 +08:00
Update logo and a few other tweaks
This commit is contained in:
11
App.js
11
App.js
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { StyleSheet, Platform, Image, Text, View } from 'react-native';
|
||||
import { StyleSheet, Platform, Image, Text, View, ScrollView } from 'react-native';
|
||||
|
||||
import firebase from 'react-native-firebase';
|
||||
|
||||
@@ -17,8 +17,9 @@ export default class App extends React.Component {
|
||||
|
||||
render() {
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<Image source={require('./assets/RNFirebase512x512.png')} style={[styles.logo]} />
|
||||
<ScrollView>
|
||||
<View style={styles.container}>
|
||||
<Image source={require('./assets/RNFirebase.png')} style={[styles.logo]} />
|
||||
<Text style={styles.welcome}>
|
||||
Welcome to the React Native{'\n'}Firebase starter project!
|
||||
</Text>
|
||||
@@ -52,7 +53,8 @@ export default class App extends React.Component {
|
||||
{firebase.config.nativeModuleExists && <Text style={styles.module}>Remote Config</Text>}
|
||||
{firebase.storage.nativeModuleExists && <Text style={styles.module}>Storage</Text>}
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
</ScrollView>
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -67,6 +69,7 @@ const styles = StyleSheet.create({
|
||||
logo: {
|
||||
height: 80,
|
||||
marginBottom: 16,
|
||||
marginTop: 32,
|
||||
width: 80,
|
||||
},
|
||||
welcome: {
|
||||
|
||||
@@ -160,6 +160,7 @@ dependencies {
|
||||
implementation "com.google.firebase:firebase-auth:12.0.1"
|
||||
implementation "com.google.firebase:firebase-config:12.0.1"
|
||||
implementation "com.google.firebase:firebase-database:12.0.1"
|
||||
implementation "com.google.firebase:firebase-invites:12.0.1"
|
||||
implementation "com.google.firebase:firebase-firestore:12.0.1"
|
||||
implementation "com.google.firebase:firebase-messaging:12.0.1"
|
||||
implementation "com.google.firebase:firebase-perf:12.0.1"
|
||||
|
||||
BIN
assets/RNFirebase.png
Normal file
BIN
assets/RNFirebase.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
Reference in New Issue
Block a user