jlebensold / peckish

MIT License
245 stars 107 forks source link

Could not find "store" in either the context or props of "Connect(AppContainer)". #3

Open dev-vinoth opened 7 years ago

dev-vinoth commented 7 years ago

Getting this error in AppContainer.js After include the redux connect export default connect(state => { return{} }, mapDispatchToProps )(AppContainer);

Check this screenshot -> https://cloud.githubusercontent.com/assets/16603533/21046818/7af654da-be2c-11e6-9dd8-cc1b6e575325.png

Dependencies are -> "dependencies": { "react": "15.4.1", "react-native": "0.39.1", "react-redux": "^4.4.6", "redux": "^3.6.0", "redux-logger": "^2.7.4", "redux-thunk": "^2.1.0" }, "devDependencies": { "babel-jest": "17.0.2", "babel-preset-react-native": "1.9.0", "jest": "17.0.3", "react-test-renderer": "15.4.1" }

jlebensold commented 7 years ago

Hi @dev-vinoth

what does your index.ios.js file look like? { store } should be passed into the container component like so: https://github.com/jlebensold/peckish/blob/master/index.ios.js