Skip to content

A mobile app for international students at Ajou Univ.

Notifications You must be signed in to change notification settings

amelia9981/Connect_Ajou

Repository files navigation

Connect Ajou

What is this?

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.

Tech Stack

React Native, Firebase

Pages

  1. Login/Register
  1. Home

  1. Community
  1. Timetable
  1. Notice Notification
  1. Chat
  1. My Page

Getting Started

1. git clone

git clone https://github.com/amelia9981/Connect_Ajou.git

2. run server

yarn start

3. device emulator

  • iOS:

      1. 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();
        };
      }, []);
      
      1. 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)

Contact

Gmail

Gmail

About

A mobile app for international students at Ajou Univ.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published