Open gabrielvincent opened 2 years ago
hi, how did u make your app run? I got this problem:
Unable to resolve module @react-navigation/stack from .../Work/VedaxLink/node_modules/react-navigation-shared-element/build/createSharedElementStackNavigator.js: @react-navigation/stack could not be found within the project or in these directories:
node_modules
1 | import { useNavigationBuilder, createNavigatorFactory, StackRouter, } from "@react-navigation/native";
> 2 | import { CardAnimationContext, StackView, } from "@react-navigation/stack";
| ^
3 | import * as React from "react";
4 | import { Platform } from "react-native";
5 | import { useSharedElementFocusEvents } from "./SharedElementFocusEvents";
package json:
"react-native-shared-element": "^0.8.4",
"react-navigation-shared-element": "^3.1.3",
"@react-navigation/native": "^6.0.10",
"@react-navigation/native-stack": "^6.6.1",
@fukemy It looks like @react-navigation/stack
is missing. Try npm i @react-navigation/stack
or yarn add @react-navigation/stack
.
thanks, i forgot it
how did you resolved your issue?
I didn't. I ended up choosing a simpler UI without a lot of fluff.
https://user-images.githubusercontent.com/469519/172361966-a0fb0899-47b1-428f-ab54-3ac71a090a2d.mp4
This is where I create the Navigation Container
This is the
CardDetail
component:All the shared elements are defined in the
SunInSignCard
component, for example:What could be causing this?
I'm using: