It is a mobile application project for international students at Ajou University and Korean students who want to join various exchange programs from Ajou University.
React Native, Firebase
- Login/Register
- Home
- Community
- Timetable
- Notice Notification
- Chat
- My Page
git clone https://github.com/amelia9981/Connect_Ajou.git
yarn start
-
iOS:
-
- Click 'Run on iOS simulator' on Expo Developer Tools
Warning: You must encounter this alert when you run this app on the emulator
You should change App.js like this:
export default function App() { const [fontloaded, setFontsLoaded] = useState(false); const [loaded, setLoaded] = useState(true); const [user, setUser] = useState(null); const [token, setToken] = useState(""); const [notification, setNotification] = useState({}); const notificationListener = useRef(); const responseListener = useRef(); useEffect(() => { // SKIP THESE LINES! // registerForPushNotification().then((token) => setToken(token)); // notificationListener.current = // Notifications.addNotificationReceivedListener((notification) => { // setNotification(notification); // }); // responseListener.current = // Notifications.addNotificationResponseReceivedListener((response) => { // console.log(response); // }); const usersRef = firebase.firestore().collection("users"); const unsubscribe = firebase.auth().onAuthStateChanged((user) => { if (user) { usersRef .doc(user.email) .get() .then((document) => { const userData = document.data(); setLoaded(false); setUser(userData); }) .catch((error) => { setLoaded(false); }); } else { setLoaded(false); } }); return () => { // SKIP THESE LINES! // Notifications.removeNotificationSubscription( // notificationListener.current // ); // Notifications.removeNotificationSubscription(responseListener.current); unsubscribe(); }; }, []);
-
- Download Expo app in your phone and scan the QR code with your camera (RECOMMENDED)
-
-
Android: Download Expo app in your phone and scan the QR code on Expo Developer Tools (RECOMMENDED)