reactionic
reactionic copied to clipboard
Unknown props in IonNavBar
Hello. I use react ionic for my project. But when in set up layout have a proplem. Have an error
"Unknown props customClasses
, leftButton
, rightButton
, history
, location
, params
, route
, routeParams
, routes
, pageList
on ". I is in IonNavBar. This is my code
var backButton = (
<IonNavBackButton
icon="ion-ios-arrow-back"
color=""
type="clear"
customClasses="button-stage"
></IonNavBackButton>
);
return (
<IonSideMenuContainer {...this.props}>
<IonSideMenuContent>
<IonNavBar
customClasses="bar-dark"
leftButton={backButton}
rightButton={backButton}
title='Home'
{...this.props}
></IonNavBar>
<IonNavView customClasses="content">
<IonView>
{this.props.children}
</IonView>
</IonNavView>
</IonSideMenuContent>
</IonSideMenuContainer>
)
Warnings for customClasses, leftButton, rightButton have been fixed on This commit
You can install the latest version:
meteor npm install [email protected]
For history, location, params, route, routeParams, routes: I've remove all the {...this.props} in layout components and use contextTypes instead.
pageList: should be imported from a module instead of passing in as prop.