Closed alexpchin closed 3 years ago
For me, the app crushes on startup
Instead of patching mention of react-navigation-stack. What worked For me was resolved just now by this -
// export { default as createSharedElementStackNavigator4 } from "./v4/createSharedElementStackNavigator";
// export { default as createSharedElementStackNavigator4 } from "./v4/createSharedElementStackNavigator";
Is there a proper fix for this or how to install the library for react-navigation v5 without the v4 parts?
It is annoying to keep making the changes @rahulkasana suggested everytime yarn is used.
A new major version has been released that now officially supports React Navigation 5 and 6. The previous 3.0.0 prerelease version was a bit clunky and I understand it would be confusing to use (it required both the v4 React Navigation and v5 dependencies to be installed, but that is no longer the case with the official version). Please view the latest documentation for more info. https://github.com/IjzerenHein/react-navigation-shared-element/releases/tag/v3.1.2 https://github.com/IjzerenHein/react-navigation-shared-element/blob/main/docs/API.md
I got this error in navigation v6, Assume I have stack like this:
const RoomDetailStack = () => {
return <Stack.Navigator>
<Stack.Screen name='RoomDetail' component={RoomDetailScreen} options={{ ...defaultNavProps }}/>
<Stack.Screen name='RoomUserList' component={ChatRoomUserList} options={{ ...defaultNavProps }}/>
<Stack.Screen name='ChatRoomInvite' component={ChatRoomInviteUser} options={{ ...defaultNavProps }}/>
<Stack.Screen name='GroupCallAppearance' component={GroupCallAppearanceScreen} options={{ ...defaultNavProps }}/>
<Stack.Screen name='RoomConfig' component={RoomConfigScreen} options={{ ...defaultNavProps }}/>
<Stack.Screen name='RoomFile' component={RoomFileScreen} options={{ ...defaultNavProps }}/>
<Stack.Screen name='RoomFileFilter' component={RoomFileFilterScreen} options={{ ...defaultNavProps }}/>
<Stack.Screen name='ChatSearchMessage' component={ChatSearchMessageScreen} options={{ ...defaultNavProps }}/>
<Stack.Screen name='ChatSearchMessageDetail' component={ChatSearchMessageDetailScreen} options={{ ...defaultNavProps }}/>
<Stack.Screen name='UserInfo' component={UserInfoScreen} options={{ ...defaultNavProps }}/>
<Stack.Screen name='ChatPwdConfig' component={ChatRoomPwdConfigScreen} options={{ ...defaultNavProps }}/>
<Stack.Screen name='ChatRoomCallHistory' component={ChatRoomCallHistoryScreen} options={{ ...defaultNavProps }}/>
<Stack.Screen name='ShareRoomInviteLink' component={ShareRoomInviteLinkUrlScreen} options={{ ...defaultNavProps }}/>
</Stack.Navigator>
}
and in navigation container
<NavigationContainer ref={RootNavigation.navigationRef}
onReady={() => {
SplashScreen.hide()
RootNavigation.isReadyRef.current = true
}}>
<Stack.Navigator>
...
<Stack.Screen name='RoomDetailStack' component={RoomDetailStack}
options={{
...defaultNavProps,
presentation: 'fullScreenModal',
headerShown: false
}} />
...
</Stack.Navigator>
</NavigationContainer>
after navigate to RoomDetailStack i got this error
I have a fairly complex app with:
I want to replace
ExploreStack
which has a screen that includes a feed of images like Instagram, where I want to open up an image with a zoom (like Instagram). I have replaced:I've had to patch mentions of
react-navigation-stack
with:However, I'm still seeing
The action 'NAVIGATE' with payload {"name":"Search"} was not handled by any navigator.
errors.Any ideas?