Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ npm-debug.*
*.orig.*
web-build/
web-report/
.env

# macOS
.DS_Store
29 changes: 8 additions & 21 deletions App.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,13 @@
import React from 'react';
import styled from 'styled-components/native';

const Container = styled.View`
flex: 1;
background-color: papayawhip;
justify-content: center;
align-items: center;
`;

const Title = styled.Text`
font-size: 24px;
color: palevioletred;
`;
import React from "react";
import { AuthProvider } from "./screens/AuthProvider";
import Routes from "./screens/Routes";

const App = () => {
return (
<Container>
<Title>This is your cool app!</Title>
<Title>Go to App.js and start coding</Title>
<Title>💅💅💅</Title>
</Container>
);
return (
<AuthProvider>
<Routes />
</AuthProvider>
);
};

export default App;
57 changes: 29 additions & 28 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
{
"expo": {
"name": "project-react-native-app",
"slug": "project-react-native-app",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": ["**/*"],
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#FFFFFF"
}
},
"web": {
"favicon": "./assets/favicon.png"
}
}
"expo": {
"name": "project-react-native-app",
"slug": "project-react-native-app",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": ["**/*"],
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#FFFFFF"
},
"softwareKeyboardLayoutMode": "resize"
},
"web": {
"favicon": "./assets/favicon.png"
}
}
}
Binary file added assets/image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions components/Loading.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React from "react";
import { View, ActivityIndicator, StyleSheet } from "react-native";

const Loading = () => {
return (
<View style={styles.loadingContainer}>
<ActivityIndicator size="large" color="6646ee" />
</View>
);
};

export default Loading;

const styles = StyleSheet.create({
loadingContainer: {
flex: 1,
alignItems: "center",
justifyContent: "center",
},
});
24 changes: 24 additions & 0 deletions firebase.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Import the functions you need from the SDKs you need
import { initializeApp, getApp } from "firebase/app";
import { initializeFirestore } from "firebase/firestore";
import { getAuth } from "firebase/auth";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries

// Your web app's Firebase configuration
const firebaseConfig = {
apiKey: "AIzaSyCSTvDwtV4scrjRg3hIcf_fslbyDpW2n10",
authDomain: "react-native-chat-afc1d.firebaseapp.com",
projectId: "react-native-chat-afc1d",
storageBucket: "react-native-chat-afc1d.appspot.com",
messagingSenderId: "175773051080",
appId: "1:175773051080:web:8362db30e5cf4d45e75dfd",
};

// Initialize Firebase
const app = initializeApp(firebaseConfig);

const auth = getAuth(app);
const db = initializeFirestore(app, { experimentalForceLongPolling: true });

export { db, auth };
Loading