+
Skip to content

ES6 context not available #73

@ptfly

Description

@ptfly

First, awesome project guys!

I'm trying to use IonModal for example, and in my component, I'm setting:

static contextTypes = {
    router:React.PropTypes.object,
    ionShowModal: React.PropTypes.func,
    ionKeyboardHeight: React.PropTypes.number,
    ionPlatform: React.PropTypes.object
};

But when I ran the app (in browser or in cordova/ ios simulator) all context types are undefined except the router. Any idea how can I fix this?

Object { router: Object, ionShowModal: undefined, ionKeyboardHeight: undefined, ionPlatform: undefined }

I'm using latest official react release, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载