pors / reactionic

React Ionic: We are looking for a new maintainer!

Home Page:http://reactionic.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unknown props in IonNavBar

opened this issue · comments

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 reactionic@1.2.0-beta.0

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.