Skip to content

Latest commit

 

History

History
67 lines (50 loc) · 3.59 KB

README.md

File metadata and controls

67 lines (50 loc) · 3.59 KB

The Stanford Daily

Supports Expo iOS Supports Expo Android Runs with Expo

Official mobile app of the independent, student-run newspaper of Stanford University. Contributions are welcome!

Getting Started

Clone the Stanford Daily mobile app repository from GitHub:

git clone https://github.com/TheStanfordDaily/stanforddaily-mobile.git

Navigate to the project directory:

cd stanforddaily-mobile

Install packages by running the yarn terminal command from the project directory, and then start the bundler:

yarn
npx expo start
  • When prompted by the command line interface, type i or a to try it on a valid simulator.
  • Alternatively, scan the QR code and open the project in a React runtime on a physical device:
  • If you have native iOS code run npx pod-install and restart the bundler.

Installation Details

If you encounter any errors, it is possible that your system does not meet the prerequisites for running this project, in which case some additional setup may be required as described in the internal Notion page. Alternatively, consult the Expo installation guide.

Troubleshooting

If you encounter any issues during the installation process or elsewhere, please reach out to the Chief Technology Officer at tech@stanforddaily.com or open an issue on GitHub.

Adding Native Code

This project can be run from a web browser or the Expo client app. You may find that you want to add more native code later on. You can do this by ejecting the project and rebuilding it yourself.

  • Run yarn eject to create the native projects.
  • You can still run your project in the web browser or Expo client after this step. You will not, however, be able to access any new Node modules.
  • For future reference, consider reading the latest Expo Modules API documentation to learn more about how to use native modules in your project without going to such lengths.

Release

  • Deploy the native app to the App Store and the Play Store with this guide: Deployment.

Notes

  • Learn more about the React Native development process with Expo.
  • See what API and components are available in the React runtimes.
  • Find out more about developing apps and websites: Guides.