aksonov / aksonov/react-native-router-flux

passing params/props when navigate using Actions[KEY].call()

Open
#3,613 3 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8.9k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

### Version
Tell us which versions you are using:

- react-native-router-flux v4.1.0-beta.8
- react v16.9.0
- react-native v0.61.5

### Expected behaviour
I can navigate from current scene to other scene and using params from current scene in other scene.
Previously i use Actions.({params: 1}) and call this.props.params to get value in OTHER_SCENE.
Now i want to use Actions[OTHER_SCENE_KEY].call({params: 1}), but call this.props.params return undefined. I want to get this.props.params value in OTHER_SCENE.

### Actual behaviour
call this.props.params return undefined.

### Steps to reproduce
1. change Actions.({params: 1}) to Actions[OTHER_SCENE_KEY].call({params: 1})
2. navigate from current scene to OTHER_SCENE
3. call this.props.params

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.