i using navigatorios , when props passing initial route change, trying update them resetting component find below new updated props in "componentwillreceiveprops".
componentwillreceiveprops: function(nextprops) { this.refs.navigator.resetto({ title: 'home', component: search, backbuttontitle: 'back', passprops: { api: nextprops.api, slug: nextprops.slug } }); } i pretty sure not referencing route correctly, frankly haven't found useful resource regarding problem.
replace() job of updating props, want poptotop(). replace , resetto both take route object, don't understand why replace() works , resetto() gives me error.
this navigatorios:
<navigatorios ref='navigator' initialroute={ { title: 'home', component: search, backbuttontitle: 'back', passprops: { api: this.props.api, slug: this.props.slug } } } /> 
if declare like:
var routes = this.refs.navigator.getcurrentroutes(); you can pop route this:
this.refs.navigator.poptoroute(routes[1]);
Comments
Post a Comment