aksonov/react-native-router-flux

this.props not receiving params

Open

#3374 aperta il 8 dic 2018

Vedi su GitHub
 (25 commenti) (2 reazioni) (0 assegnatari)JavaScript (2112 fork)batch import
help wanted

Metriche repository

Star
 (8999 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

  • 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

Guida contributor