我无法访问*.ios.js文件中的prop函数,android对应的文件工作得很好。
export default connect(mapStateToProps, {
updateTextInput, onResetPressed, getRecentSearches, getPopularNearYou,
filterWhereSelected,
})(ToolbarModal);
发布于 2017-03-16 08:28:52
我犯了一个愚蠢的错误,我的动作创建者有一个错误的循环导入:
import Suggestions from "../components/toolbarModal.ios";
更正了导入,一切正常..如果Webstorm没有提出这个导入,或者它会检测到toolbarModal.ios中没有建议,那就太好了。
https://stackoverflow.com/questions/42828249
复制