aksonov/react-native-router-flux

this.props not receiving params

Open

#3,374 创建于 2018年12月8日

在 GitHub 查看
 (25 评论) (2 反应) (0 负责人)JavaScript (8,999 star) (2,112 fork)batch import
help wanted

描述

  • 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

贡献者指南