Skip to content

<FlatFeed /> is not working in the <NavigationContainer> due to Expo and @react-navigation/native-stack version issue. #244

@rushabhOrdex

Description

@rushabhOrdex
  • iOS or Android? => Both
  • Expo or regular React Native? => Expo
  • React Native Version => 0.64.3
  • expo-activity-feed Version => 1.1.1
  • getstream Version =>7.2.11
  • @react-navigation/native Version => 6.0.6
  • @react-navigation/native-stack Version => 6.2.5

Describe the bug
Currently, we are using with StackNavigator
When we add to App.js It Throw error as below. My Expo version is:- 43.0.2

Error: Couldn't find a navigation context. Have you wrapped your app with 'NavigationContainer'? 
See https://reactnavigation.org/docs/getting-started for setup instructions.

If I remove NavigationContainer then FlatFeed loads in-app but I need it for routing.

When I tried same application with below Expo Version and Expo dependencies version it is working.

Note:- It is not working with @react-navigation/native-stack I had to use @react-navigation/stack package to have the Stack Navigation.

  • React Native Version => ~0.63.4
  • Expo Version => 40.0.0
  • expo-activity-feed Version => 1.1.0
  • getstream Version =>7.2.11
  • @react-navigation/native Version => ^5.8.10
  • @react-navigation/stack Version => ^5.12.8

So, is the Expo 43.0.2 is not compatible with the getstream and <FlatFeed /> to use them inside <NavigationContainer>?
If that is the case do we need to downgrade Expo version and dependencies of it?
Please advise.

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