IjzerenHein / react-navigation-shared-element

React Navigation bindings for react-native-shared-element 💫
https://github.com/IjzerenHein/react-native-shared-element
MIT License
1.27k stars 124 forks source link

Render Error with React-Navigation v5 #196

Closed whck6 closed 2 years ago

whck6 commented 2 years ago
  "dependencies": {
    "@react-navigation/bottom-tabs": "^5.11.8",
    "@react-navigation/material-top-tabs": "^5.3.14",
    "@react-navigation/native": "^5.9.3",
    "@react-navigation/stack": "^5.14.3",
    "react-native-shared-element": "^0.8.2",
    "react-navigation-shared-element": "^3.1.3",
    "react": "17.0.1",
    "react-native": "0.64.2",
    ...
  }
const Stack = createSharedElementStackNavigator()

export default function MainNavigator() {
  return (
    <Stack.Navigator>
      <Stack.Screen component={MainTabs} name="Main" />
    </Stack.Navigator>
  )
}

As above a statement, but doesn't work, any idea if anyone has it?

Simulator Screen Shot - iPhone 11 - 2021-09-18 at 05 41 44

IjzerenHein commented 2 years ago

Did you forget to link the native-code (or run pod install). I think you might also need react-native-screens.

whck6 commented 2 years ago

Yes, I did it.

IjzerenHein commented 2 years ago

Please share the solution so this can help others as well

whck6 commented 2 years ago

No, I mean I did it your mention before but the error still exists

whck6 commented 2 years ago

It's worked for me after updating those versions.

"@react-navigation/native": "^5.9.8",
"@react-navigation/stack": "^5.14.9",