aksonov/react-native-router-flux

this.props not receiving params

開放

#3,374 建立於 2018年12月8日

 (25 則留言) (2 個反應) (0 位負責人)JavaScript (2,072 個分叉)batch import
help wanted

倉庫指標

星標
 (8,916 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

  • 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

貢獻者指南