{"action":"created","issue":{"url":"https://api.github.com/repos/Kureev/react-native-navbar/issues/15","labels_url":"https://api.github.com/repos/Kureev/react-native-navbar/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/Kureev/react-native-navbar/issues/15/comments","events_url":"https://api.github.com/repos/Kureev/react-native-navbar/issues/15/events","html_url":"https://github.com/Kureev/react-native-navbar/issues/15","id":68631669,"number":15,"title":"passProps seem doesn't work","user":{"login":"iostalk","id":659130,"avatar_url":"https://avatars.githubusercontent.com/u/659130?v=3","gravatar_id":"","url":"https://api.github.com/users/iostalk","html_url":"https://github.com/iostalk","followers_url":"https://api.github.com/users/iostalk/followers","following_url":"https://api.github.com/users/iostalk/following{/other_user}","gists_url":"https://api.github.com/users/iostalk/gists{/gist_id}","starred_url":"https://api.github.com/users/iostalk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iostalk/subscriptions","organizations_url":"https://api.github.com/users/iostalk/orgs","repos_url":"https://api.github.com/users/iostalk/repos","events_url":"https://api.github.com/users/iostalk/events{/privacy}","received_events_url":"https://api.github.com/users/iostalk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Kureev/react-native-navbar/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-04-15T09:51:07Z","updated_at":"2015-04-22T08:25:19Z","closed_at":null,"body":"I call `this.props.navigator.push` to the next scene, and pass some props to the next scene, and caught an error, the passed prop is undefined in the next view,it seems passProps doesn't work,and code is below:\r\n\r\n```jsx\r\n/**\r\n * Sample React Native App\r\n * https://github.com/facebook/react-native\r\n */\r\n'use strict';\r\n\r\nvar React = require('react-native');\r\nvar Product = require('./product');\r\nvar Adapt = require('./adapt');\r\n\r\nvar mdskip = require('./data/mock-mdskip');\r\nvar context = require('./data/mock-context');\r\nvar NavigationBar = require('react-native-navbar');\r\n\r\nvar Detail = require(\"./ui/detail\");\r\nvar styles = require(\"./ui/style\");\r\nvar {\r\n  Navigator,\r\n  NavigatorIOS,\r\n  AppRegistry,\r\n  View,\r\n  Text,\r\n  StyleSheet,\r\n  TouchableHighlight,\r\n  ScrollView\r\n} = React;\r\n\r\nvar product = new Product();\r\nproduct.set(\"context\", context.ModuleDatas);\r\nproduct.set(\"config\", context.TDetail);\r\nproduct.set(\"mdskip\", Adapt.transform(mdskip));\r\nproduct.set(\"deviceType\", \"phone\");\r\n\r\nvar RootComponent = React.createClass({\r\n  getInitialState: function(){\r\n    return {};\r\n  },\r\n  componentDidMount: function() {\r\n    var self = this;\r\n  },\r\n  renderScene: function(route, navigator) {\r\n    var product = this.state.product;\r\n\r\n    var Component = route.component;\r\n    var navBar = route.navigationBar;\r\n\r\n    if (navBar) {\r\n      navBar = React.addons.cloneWithProps(navBar, {\r\n        navigator: navigator,\r\n        route: route\r\n      });\r\n    }\r\n\r\n    return (\r\n      <View style={styles.navigator}>\r\n        {navBar}\r\n        <Component navigator={navigator} route={route} product={product} />\r\n      </View>\r\n    );\r\n  },\r\n  render: function() {\r\n\r\n    if(context){\r\n      return (\r\n        <Navigator\r\n        style={styles.navigator}\r\n        renderScene={this.renderScene}\r\n        initialRoute={{\r\n          component: Entrance,\r\n          navigationBar: <NavigationBar\r\n            title=\"Initial View\"\r\n            onNext={this.handleNext}\r\n          />\r\n        }}\r\n      />\r\n      );\r\n    }else{\r\n      return (\r\n        <View></View>\r\n      )\r\n    }\r\n  }\r\n});\r\n\r\nvar Entrance = React.createClass({\r\n  render: function(){\r\n    return (\r\n      <View style={styles.clickMe}>\r\n        <TouchableHighlight onPress={this.onPress} underlayColor=\"#B5B5B5\">\r\n          <Text style={styles.clickMeText}>点我看详情</Text>\r\n        </TouchableHighlight>\r\n      </View>\r\n    );\r\n  },\r\n  componentDidMount(){\r\n    var self = this;\r\n    product.onLoad([\"context\", \"config\", \"mdskip\"], function(context, config, mdskip){\r\n      self.setState({\r\n        \"context\": context,\r\n        \"config\": config,\r\n        \"mdskip\": mdskip\r\n      });\r\n    })\r\n  },\r\n  onPress: function(){\r\n    var context = this.state.context;\r\n    var config = this.state.config;\r\n    var mdskip = this.state.mdskip;\r\n    var product = this.props.product;\r\n\r\n    this.props.navigator.push({\r\n      title: context.title.itemTitle,\r\n      component: DetailMain,\r\n      backButtonTitle: 'Back',\r\n      passProps: { config: config, mdskip: mdskip, product: product, context: context}\r\n    });\r\n  }\r\n});\r\n\r\nvar DetailMain = React.createClass({\r\n  getInitialState: function(){\r\n    return {\r\n      loading: false\r\n    };\r\n  },\r\n  render: function(){\r\n    return (\r\n      <Detail config={this.props.config} mdskip={this.props.mdskip} product={this.props.product} context={this.props.context} navigator={this.props.navigator}/>\r\n    )\r\n  }\r\n})\r\n\r\nAppRegistry.registerComponent('DetailNative', () => RootComponent);\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Kureev/react-native-navbar/issues/comments/95072102","html_url":"https://github.com/Kureev/react-native-navbar/issues/15#issuecomment-95072102","issue_url":"https://api.github.com/repos/Kureev/react-native-navbar/issues/15","id":95072102,"user":{"login":"Kureev","id":2273613,"avatar_url":"https://avatars.githubusercontent.com/u/2273613?v=3","gravatar_id":"","url":"https://api.github.com/users/Kureev","html_url":"https://github.com/Kureev","followers_url":"https://api.github.com/users/Kureev/followers","following_url":"https://api.github.com/users/Kureev/following{/other_user}","gists_url":"https://api.github.com/users/Kureev/gists{/gist_id}","starred_url":"https://api.github.com/users/Kureev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kureev/subscriptions","organizations_url":"https://api.github.com/users/Kureev/orgs","repos_url":"https://api.github.com/users/Kureev/repos","events_url":"https://api.github.com/users/Kureev/events{/privacy}","received_events_url":"https://api.github.com/users/Kureev/received_events","type":"User","site_admin":false},"created_at":"2015-04-22T08:25:19Z","updated_at":"2015-04-22T08:25:19Z","body":"@iostalk strange, I don't see you passing `passProps` in this code."}}