reactionic icon indicating copy to clipboard operation
reactionic copied to clipboard

Unknown props in IonNavBar

Open ghost opened this issue 8 years ago • 1 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>
        )

ghost avatar Oct 21 '16 09:10 ghost

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.

vinhhungle avatar Dec 24 '16 05:12 vinhhungle