A React Native application that implements infinite scroll like TikTok.
It shows an endless stream of relevant multiple-choice questions so that you can validate my knowledge in select areas.
- Showing content for the “For you” section of the “Home” screen,
- Displaying the Multiple Choice Questions (MCQs) in this section,
- Revealing the correct answer when the user taps one choice of an MCQ,
- Showing the content’s author name (e.g., “AP US History”), playlist, avatar, and content description,
- Browsing through content in an infinite scroll fashion (like TikTok),
- Measuring the time the user spent in the app using a countdown timer at the top left.
This is a new React Native project, bootstrapped using @react-native-community/cli.
First, you must start Metro, the JavaScript bundler that ships with React Native.
To start Metro, run the following command from the root of your React Native project:
# using npm
npm start
# OR using Yarn
yarn startLet Metro Bundler run in its own terminal. Open a new terminal from the root of your React Native project. Run the following command to start your Android or iOS app:
# using npm
npm run android
# OR using Yarn
yarn android# using npm
npm run ios
# OR using Yarn
yarn iosIf everything is set up correctly, you should see your new app running in your Android Emulator or iOS Simulator shortly provided you have set up your emulator/simulator correctly.
This is one way to run your app — you can also run it directly from within Android Studio and Xcode respectively.
Now that you have successfully run the app, let's modify it.
-
Open
App.tsxin your text editor of choice and edit some lines. -
For Android: Press the R key twice or select "Reload" from the Developer Menu (Ctrl + M (on Window and Linux) or Cmd ⌘ + M (on macOS)) to see your changes!
For iOS: Hit Cmd ⌘ + R in your iOS Simulator to reload the app and see your changes!
You've successfully run and modified your React Native App. 🥳