Skip to content

brentvatne/monoapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Expo Yarn Workspaces Example

Supports Expo iOS Supports Expo Android Supports Expo Web

Demonstrates the use of expo-yarn-workspaces with Expo. This example installs a monorepo with two applications, both using two separate custom packages.

🚀 How to use

  • Create a new monorepo with npx create-react-native-app --template with-yarn-workspaces.
    • Packages will be automatically installed via the postinstall script in package.json
  • Run yarn app to start the app.

📁 File Structure

├── apps
│   └── app
│       ├── App.js ➡️ Entry Point for the app
│       ├── package.json ➡️ contains configuration required by expo-yarn-workspaces
│       └── metro.config.js ➡️ required by expo-yarn-workspaces
├── packages
│   └── expo-custom
│       └── src/index.tsx ➡️ exports a custom message which is imported and displayed in the app
├── package.json ➡️ contains the `postinstall` script and scripts with yarn commands to run applications
└── babel.config.js ➡️ Babel config (should be using `babel-preset-expo`)

📝 Notes

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published