Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

/src directory is not supported #231

@PiotrekPKP

Description

@PiotrekPKP

Summary

expo-router package only loads pages that are directly in the /app directory.

Many projects end up having many directories (like /types, /utils, etc.) and managing them is easier when you put your app's code in /src directory.

That's why I think supporting /src/app directory for pages is really important - eg. see NextJS, it allows you to use /src/pages structure.

Minimal reproducible example

https://github.com/PiotrekPKP/expo-router-test

This should work and not show the default router layout ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions