Official mobile app of the independent, student-run newspaper of Stanford University. Contributions are welcome!
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
ora
to try it on a valid simulator. - Alternatively, scan the QR code and open the project in a React runtime on a physical device:
- iOS: Client iOS
- Android: Client Android
- If you have native iOS code run
npx pod-install
and restart the bundler.
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.
If you encounter any issues during the installation process or elsewhere, please reach out to the Chief Technology Officer at [email protected] or open an issue on GitHub.
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.
- Deploy the native app to the App Store and the Play Store with this guide: Deployment.
- 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.