could not find react-redux context value; please ensure the component is wrapped in a <Provider> & I have already provided the provider wrapper

Viewed 27
const RootNavigation = () => {
  return (
    <NavigationContainer>
      <StatusBar backgroundColor="#EE4254" />
      <MyDrawer />
    </NavigationContainer>
  );
};

const App = () => {
  return (
    <Provider store={Store.store}>
      <PersistGate loading={null} persistor={Store.persistor}>
        <RootNavigation />
      </PersistGate>
    </Provider>
  );
};
export default App;

// I have already provided the Provider but i don't know why asking for provider wrapper

0 Answers
Related