victorkvarghese / react-native-boilerplate

🚀 Type Based Architecture for developing React Native Apps using react, redux, sagas and hooks with auth flow
MIT License
602 stars 210 forks source link

Adding redux on navigation #2

Closed hemel-cse closed 5 years ago

hemel-cse commented 5 years ago

Hi, I am using the boilerplate for one of my project. It's good. you can add redux navigation. In the saga the navigation action is throwing error. yield put(navigationActions.navigateToHomeScreen({})); Can you show a working example?

victorkvarghese commented 5 years ago

@hemel-cse Redux navigation is soon going to be deprecated. naviagtionActions has some changes based on the new react-navigation service used.

I will update the code using the new code and include an example for navigation as well.

Expect a new commit today ...

victorkvarghese commented 5 years ago

Refer LoginView class on how to use navigationActions anywhere (even in saga) Closed 232e119e1569cdc555da4e145c47a4e6658392a9

hemel-cse commented 5 years ago

Thanks for the update. Appreciate it.