{"id":16458330,"url":"https://github.com/flexbox/react-native-nextjs-monorepo","last_synced_at":"2025-08-09T00:25:41.977Z","repository":{"id":41853421,"uuid":"470556788","full_name":"flexbox/react-native-nextjs-monorepo","owner":"flexbox","description":"Exploring monorepo with React Native and Next.js —bootstrapped with solito","archived":false,"fork":false,"pushed_at":"2022-04-26T10:05:47.000Z","size":396,"stargazers_count":33,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T22:07:59.874Z","etag":null,"topics":["expo","monorepo","nextjs","react","react-native","react-navigation","solito","typescript"],"latest_commit_sha":null,"homepage":"https://react-native-expo-nextjs-monorepo.vercel.app/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flexbox.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-16T11:37:21.000Z","updated_at":"2025-02-24T02:35:11.000Z","dependencies_parsed_at":"2022-08-11T19:31:01.860Z","dependency_job_id":null,"html_url":"https://github.com/flexbox/react-native-nextjs-monorepo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexbox%2Freact-native-nextjs-monorepo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexbox%2Freact-native-nextjs-monorepo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexbox%2Freact-native-nextjs-monorepo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexbox%2Freact-native-nextjs-monorepo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flexbox","download_url":"https://codeload.github.com/flexbox/react-native-nextjs-monorepo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244745667,"owners_count":20503044,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["expo","monorepo","nextjs","react","react-native","react-navigation","solito","typescript"],"created_at":"2024-10-11T10:44:57.023Z","updated_at":"2025-03-21T05:30:54.520Z","avatar_url":"https://github.com/flexbox.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Native Next.js Monorepo\n\n\u003e Exploring universal apps (_native and web_) —[bootstrapped with solito](https://solito.dev/)\n\n👾 [View the website](https://example.solito.dev)\n\n- Select the folder `apps/next` as the root of your Next.js app on the Vercel setup.\n\n## 📦 Included packages\n\n- `solito` for cross-platform navigation ([Talk at Next.js Conf](https://www.youtube.com/watch?v=0lnbdRweJtA))\n- `moti` for animations\n- `dripsy` for theming/design (you can bring your own, too)\n- Expo SDK\n- Next.js\n- React Navigation\n\n## 🗂 Folder layout\n\n- `apps` entry points for each app\n  - `expo`\n  - `next`\n\n- `packages` shared packages across apps\n  - `app` you'll be importing most files from `app/`\n    - `features` (don't use a `screens` folder. organize by feature.)\n    - `provider` (all the providers that wrap the app, and some no-ops for Web.)\n    - `navigation` Next.js has a `pages/` folder. React Native doesn't. This folder contains navigation-related code for RN. You may use it for any navigation code, such as custom links.\n\nYou can add other folders inside of `packages/` if you know what you're doing and have a good reason to.\n\n## 🏁 Getting started\n\n```\nyarn\nyarn web\nyarn native\n```\n\n## 🆕 Add new dependencies\n\n\u003cdetails\u003e\n\u003csummary\u003ePure JS dependencies\u003c/summary\u003e\n\nIf you're installing a JavaScript-only dependency that will be used across platforms, install it in `packages/app`:\n\n```sh\ncd packages/app\nyarn add date-fns\ncd ../..\nyarn\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eNative dependencies\u003c/summary\u003e\n\nIf you're installing a library with any native code, you must install it in `apps/expo`:\n\n```sh\ncd apps/expo\nyarn add react-native-reanimated\n\ncd ../..\nyarn\n```\n\nYou can also install the native library inside of `packages/app` if you want to get autoimport for that package inside of the `app` folder. However, you need to be careful and install the _exact_ same version in both packages. If the versions mismatch at all, you'll potentially get terrible bugs. This is a classic monorepo issue. I use `lerna-update-wizard` to help with this (you don't need to use Lerna to use that lib).\n\u003c/details\u003e\n\n## 👏 Kudos\n\n- Fernando Rojo on Twitter: [@FernandoTheRojo](https://twitter.com/intent/follow?screen_name=fernandotherojo)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexbox%2Freact-native-nextjs-monorepo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflexbox%2Freact-native-nextjs-monorepo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexbox%2Freact-native-nextjs-monorepo/lists"}