You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
I'm new to RN and react-native-router .
How can I use routes in titleCompoent ?
my code is something like this,it will cause an error :"this.props.toRoute is not a function"
var TitleComp = React.createClass({
render:function(){
return (
I'm new to RN and react-native-router .
How can I use routes in titleCompoent ?
my code is something like this,it will cause an error :"this.props.toRoute is not a function"
var TitleComp = React.createClass({
render:function(){
return (
aaa
);
},
_toSearchPage: function(){
this.props.toRoute({
name: "To Search Page",
component: SearchPage
}
);
}
});
var MyApp = React.createClass({
render:function() {
return (
)
}
});
var firstRoute = {
name: 'Welcome!',
titleComponent:TitleComp,
component: SearchPage,
};
AppRegistry.registerComponent('navProject', () => MyApp);