Giter VIP home page Giter VIP logo

Comments (5)

Ashoat avatar Ashoat commented on May 2, 2024

I don’t think overriding the default reducer behavior is supported in react-navigation. As far as I understand, there is state outside of the Redux store that gets changed when you navigate. If that’s not it, it might be some of the other actions that occur on navigation (maybe the COMPLETE_TRANSITION one?).

from redux-helpers.

crobinson42 avatar crobinson42 commented on May 2, 2024

Interesting - I put a custom redux middleware function in and returned null on COMPLETE_TRANSITION actions but the active tab transition still occurs. I don't see any other NAVIGATION/* actions coming through during the tab nav action.

How would you prevent a user from going to a different tab in the TabNavigator based on some validation (or user input confirmation)?

from redux-helpers.

Ashoat avatar Ashoat commented on May 2, 2024

tabBarOnPress should work for you.

from redux-helpers.

Ashoat avatar Ashoat commented on May 2, 2024

https://reactnavigation.org/docs/tab-navigator.html

from redux-helpers.

crobinson42 avatar crobinson42 commented on May 2, 2024

Just an update for anyone who finds this issue, my problem was related to using tabBarComponent: ... with this library: https://github.com/timomeh/react-native-material-bottom-navigation#bottomnavigation

from redux-helpers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.