从版本6开始,使用React 16.3,react-redux添加了对上下文API的支持。// You can pass the context as an option to connect mapState, null,)(MyComponent)
// or, call connect as normal to start
我使用API 22来呈现和迁移到新的API支持v4:22.1+和v7:22.1+。Exception raised during rendering: View android.support.v7.widget.Toolbar not created with the right context
设想情况:
呈现API v22 (更改为21或19不能解决此