Jeepeng

Results 8 comments of Jeepeng
trafficstars

目前没有适配H5,有空我适配一下

经过我初步测试,发现 debug 模式打包可以正常获取到,release 打包就获取不到,我看看是混淆配置没弄好还是什么原因

可能原因: 1. 设置的账号 account 长度为2个字节以上,不要使用"test","123456"这种过于简单的字符串 2. 拿不到`apple push token`:不是真机上调试、 推送证书没有配好等

参考 https://github.com/Jeepeng/react-native-xinge-push/tree/master/example/android

需要dispatch的,看起来没什么问题。。。 从报错看来好像是引入thunk中间件没有成功 看了你的代码createStore函数用法错了: ```js const store = createStore( reducer, applyMiddleware(thunk) ); ``` 应该: ```js // 调用 applyMiddleware,使用 middleware 增强 createStore: const createStoreWithMiddleware = applyMiddleware(thunk)(createStore) const store = createStoreWithMiddleware(reducer) ``` http://redux.org.cn/docs/api/createStore.html...

确实,redux@>=3.1.0可以这样用createStore, 但是看了一下redux源代码:[报错位置](https://github.com/reactjs/redux/blob/master/src/createStore.js#L151-L153) 确实像是由于某种情况没有成功引入redux-thunk

I encountered the same issue, and downgrading to version 1.3.0 worked for me. #328