暂无描述

App.js 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import { StatusBar } from 'expo-status-bar';
  2. import React from 'react';
  3. import { StyleSheet, Text, View } from 'react-native';
  4. export default function App() {
  5. return (
  6. <View style={styles.container}>
  7. <Text>"Hello"</Text>
  8. <StatusBar style="auto" />
  9. </View>
  10. );
  11. }
  12. // Import the functions you need from the SDKs you need
  13. import { initializeApp } from "firebase/app";
  14. // TODO: Add SDKs for Firebase products that you want to use
  15. // https://firebase.google.com/docs/web/setup#available-libraries
  16. // Your web app's Firebase configuration
  17. const firebaseConfig = {
  18. apiKey: "AIzaSyDW-ABAQ3r_WR7C7WC_3VprL77NcAoitJI",
  19. authDomain: "freehand-d8ecd.firebaseapp.com",
  20. projectId: "freehand-d8ecd",
  21. storageBucket: "freehand-d8ecd.appspot.com",
  22. messagingSenderId: "48371388186",
  23. appId: "1:48371388186:web:9a5a4bf1218e17ac6326a3"
  24. };
  25. // Initialize Firebase
  26. const app = initializeApp(firebaseConfig);
  27. const styles = StyleSheet.create({
  28. container: {
  29. flex: 1,
  30. backgroundColor: '#fff',
  31. alignItems: 'center',
  32. justifyContent: 'center',
  33. },
  34. });