Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to expo-router V3 #10

Open
GoldAndLink opened this issue Feb 13, 2024 · 1 comment
Open

Migrate to expo-router V3 #10

GoldAndLink opened this issue Feb 13, 2024 · 1 comment

Comments

@GoldAndLink
Copy link

Once upgraded to expo SDK 50 and expo-router V3 I get the following issue
Unable to resolve "expo-router/src/layouts/withLayoutContext" from "node_modules/@bacons/expo-router-top-tabs/build/index.js"

@giacomosardo
Copy link

Try temp local fix into node_modules/@bacons/expo-router-top-tabs/build/index.js

replace from

const { useFilterScreenChildren, } = .....;
const { useContextKey, useRouteNode } = ....;
const { useSortedScreens } = ....;

To:

const { useFilterScreenChildren, } = require("expo-router/build/layouts/withLayoutContext");
const { useContextKey, useRouteNode } = require("expo-router/build/Route");
const { useSortedScreens } = require("expo-router/build/useScreens");

I tried to fix on GitHub fork @EvanBacon:
giacomosardo@972d665

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants