wwayne / react-native-nba-app

This is why we play
MIT License
2.23k stars 511 forks source link

GamePanel -> GameDetail #12

Closed andtur closed 8 years ago

andtur commented 8 years ago

Hi,

It is more perhaps stupid question than an issue. I am bit lost in understanding your code. You open the GameDetails with the navigator from GamePanel. In the route you place game and date. In the GameDetails you get actions from the props. Where do they come from?

Thank you

wwayne commented 8 years ago

@andtur This is a good question. To put it simply, I made use of Navigator.

You can see in app > containers > Game.js line 22, every component in Game page is supported(rendered) by Navigator, and the same props is passed in by Navigator.

You may wonder where {...this.props} come from, you can check the App.js in containers folder, line 41, it comes from Redux store.