React-native-router-flux: How to get length of router?

Created on 17 Jun 2016  路  6Comments  路  Source: aksonov/react-native-router-flux

Version

"dependencies": {
"react": "^15.1.0",
"react-native": "^0.27.2",
"react-native-drawer": "^2.2.2",
"react-native-router-flux": "^3.30.0",
"react-redux": "^4.4.0",
"redux": "^3.3.1",
"react-native-button": "github:ide/react-native-button"
}

Expected behaviour

I tried current path and length with "currentRouter" but, got "undefined"

here is capture of "Actions" in my component
screen shot 2016-06-16 at 6 24 08 pm

Most helpful comment

I have a tangentially related question, is there a way to get the size of the stack before we do an Actions.pop()?

All 6 comments

What exactly do you expect to get? The number of routes you have?

One idea I have for this is maybe keep track of the stack in redux?

I expect get size of routes or list of routes.

Do I have to stack or track by myself?

I have a tangentially related question, is there a way to get the size of the stack before we do an Actions.pop()?

In my case i want the type PUSH_OR_POP on transitions. And i need to know the size of the stack to know if the action was a pop (and how many scenes it poped) or a push of a new scene.

Same question

+1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fgrs picture fgrs  路  3Comments

basdvries picture basdvries  路  3Comments

vinayr picture vinayr  路  3Comments

sarovin picture sarovin  路  3Comments

jgibbons picture jgibbons  路  3Comments