aksonov/react-native-router-flux

this.props not receiving params

Open

#3,374 opened on Dec 8, 2018

View on GitHub
 (25 comments) (2 reactions) (0 assignees)JavaScript (2,112 forks)batch import
help wanted

Repository metrics

Stars
 (8,999 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

  • react-native-router-flux v4.0.6
  • react v16.6.3
  • react-native v0.57.7

Hi everybody, I'm having a weird problem. Seems that passing values through scenes using props doesn't works after update to lasts versions

This is the code that changes the action passing a param "idEnquiry" <TouchableOpacity onPress={() => Actions.Details({ idEnquiry: 'enquiry.id' })} ....

And this is the page that doesn't receive the params export default class Details extends Component { constructor(props) { super(props); console.log(this.props.idEnquiry); ....

returns undefined

Any idea? has the Actions api changed in the last version?

Thanks

Contributor guide