Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown props in IonNavBar #74

Open
ghost opened this issue Oct 21, 2016 · 1 comment
Open

Unknown props in IonNavBar #74

ghost opened this issue Oct 21, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 21, 2016

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>
        )
@vinhhungle
Copy link

vinhhungle commented Dec 24, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant