Comments (8)
@Ashoat , This is the current package.jason that i have
"dependencies": {
"@babel/runtime": "^7.1.2",
"axios": "^0.18.0",
"eslint-config-rallycoding": "^3.2.0",
"react": "16.6.0-alpha.8af6728",
"react-native": "0.57.3",
"react-native-elements": "^0.19.1",
"react-native-vector-icons": "^6.0.2",
"react-navigation": "^2.18.1",
"react-navigation-material-bottom-tabs": "^0.4.0",
"react-navigation-redux-helpers": "^2.0.7",
"react-redux": "^5.0.7",
"redux": "^4.0.1",
"redux-thunk": "^2.3.0"
},
"devDependencies": {
"babel-jest": "23.6.0",
"jest": "23.6.0",
"metro-react-native-babel-preset": "0.48.1",
"react-test-renderer": "16.6.0-alpha.8af6728"
},
and the result is still the same
I did try this before trying to downgrade to the working version that i had of react-navigation-redux-helpers.. original i had 2.0.6 which didnt work, and then i upgraded to 2.0.7, which also didnt work, and then I went down to 2.0.4.. Which also again didn't work..
node_modules/react-navigation-redux-helpers/package.json looks like following
{
"_from": "[email protected]",
"_id": "[email protected]",
"_inBundle": false,
"_integrity": "sha512-EbQ7h6Y9K4ZszUtkQpqcO0HiBy7USgJ1xrEQ/+xOq/lWLt/gomBSN2YOniUNSXI2O+9tDi2KSwM6GGe1nFfZVQ==",
"_location": "/react-navigation-redux-helpers",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "[email protected]",
"name": "react-navigation-redux-helpers",
"escapedName": "react-navigation-redux-helpers",
"rawSpec": "2.0.7",
"saveSpec": null,
"fetchSpec": "2.0.7"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/react-navigation-redux-helpers/-/react-navigation-redux-helpers-2.0.7.tgz",
"_shasum": "6194c8d6bd2c0e386b103dec179ceb175dbefd96",
"_spec": "[email protected]",
"_where": "D:\\ReactNative\\AlphaM",
"author": {
"name": "Ashoat Tevosyan",
"url": "https://github.com/ashoat"
},
"bugs": {
"url": "https://github.com/react-navigation/react-navigation-redux-helpers/issues"
},
"bundleDependencies": false,
"dependencies": {
"invariant": "^2.2.2"
},
"deprecated": false,
"description": "Redux middleware and utils for React Navigation",
"devDependencies": {
"flow-bin": "^0.64.0",
"react": "^16.4.0"
},
"files": [
"src",
"index.d.ts"
],
"homepage": "https://github.com/react-navigation/react-navigation-redux-helpers#readme",
"license": "BSD-2-Clause",
"main": "src/index.js",
"name": "react-navigation-redux-helpers",
"peerDependencies": {
"react": "*",
"react-navigation": "*",
"redux": "*"
},
"repository": {
"url": "git+ssh://[email protected]/react-navigation/react-navigation-redux-helpers.git",
"type": "git"
},
"version": "2.0.7"
}
Is this issue really related to react-navigation-redux-helpers, or shud i just downgrade react-navigation altogether
from redux-helpers.
Thanks for the report! [email protected]
should fix this.
from redux-helpers.
With the following dependencies its working fine
"dependencies": {
"axios": "^0.18.0",
"eslint-config-rallycoding": "^3.2.0",
"numeral": "^2.0.6",
"react": "16.3.1",
"react-native": "0.55.4",
"react-native-elements": "^0.19.1",
"react-native-highcharts": "^1.0.2",
"react-native-modal-datetime-picker": "^6.0.0",
"react-native-vector-icons": "^4.6.0",
"react-navigation": "^2.9.0",
"react-navigation-material-bottom-tabs": "^0.3.0",
"react-navigation-redux-helpers": "^2.0.4",
"react-redux": "^5.0.7",
"redux": "^4.0.0",
"redux-thunk": "^2.3.0"
},
"devDependencies": {
"babel-jest": "23.4.0",
"babel-preset-react-native": "4.0.0",
"jest": "23.4.1",
"react-test-renderer": "16.3.1"
}
but with more latest versions such as follows, it fails
"dependencies": {
"@babel/runtime": "^7.1.2",
"axios": "^0.18.0",
"eslint-config-rallycoding": "^3.2.0",
"react": "16.6.0-alpha.8af6728",
"react-native": "0.57.3",
"react-native-elements": "^0.19.1",
"react-native-vector-icons": "^6.0.2",
"react-navigation": "^2.18.1",
"react-navigation-material-bottom-tabs": "^0.4.0",
"react-navigation-redux-helpers": "^2.0.4",
"react-redux": "^5.0.7",
"redux": "^4.0.1",
"redux-thunk": "^2.3.0"
},
"devDependencies": {
"babel-jest": "23.6.0",
"jest": "23.6.0",
"metro-react-native-babel-preset": "0.48.1",
"react-test-renderer": "16.6.0-alpha.8af6728"
},
The following error is what i get.
Not sure why is this closed, is there a fixed solution for this, because i have tried it with
"react-navigation-redux-helpers": "^2.0.4",
"react-navigation-redux-helpers": "^2.0.6",
"react-navigation-redux-helpers": "^2.0.7",
none of them fixed it for me
from redux-helpers.
@ws7one you probably didn’t succeed in updating the package. Try again, this time making sure node_modules/react-navigation-redux-helpers/package.json
reflects the version you claim to have.
from redux-helpers.
this helper doesn't worked for React Navigation v3.0
from redux-helpers.
same question,v3 and [email protected]
from redux-helpers.
I can investigate further if you can provide an MCVE that reproduces the issue, in the form of an Expo Snack or a react-native init
'd repo hosted on GitHub.
from redux-helpers.
Seems like 6 months later we're still having the same issues. Any updates on this?
EDIT:
In our code we had the following:
getCurrentNavigation = () => {
invariant(this.currentNavProp, 'should be set')
return this.currentNavProp
}
removing the invariant there seemed to remove the error. No noticeable changes happened in the app, everything still seems to work as expected.
from redux-helpers.
Related Issues (20)
- Issues in ThemeProvider HOT 3
- this .setState does'nt work in componnent didmount anyone can help me? HOT 3
- Is @react-navigation/core needed? v4.0.1 HOT 3
- Invariant Violation: App.router must be provided to createNavigationPropConstructor as of [email protected] HOT 2
- NavState missing routes
- React Nav 5 support - undefined is not object _core.NavigationActions.init HOT 7
- When will react-navigation-5 be adapted? HOT 2
- undefined is not object _core.NavigationActions.init HOT 2
- TypeError: undefined is not an object (evaluating 'Navigator.router')
- React navigation navigation.getChildNavigation is not a fucntion HOT 1
- createReactNavigationReduxMiddleware called more than once
- Cannot read property 'routes' of undefined HOT 2
- TypeScript typings rely on nonexistent @react-navigation/core libdefs HOT 4
- Typings error HOT 2
- Upgrading react-navigation from 1.0.0-beta.13 to latest, having trouble re-integrating my nested navigators with redux. HOT 3
- Cannot read property 'routes' of undefined - react-navigation 3.11, redux-helper 3.0.2 HOT 1
- createNavigationReducer on Web HOT 1
- Upgrading from 1.0.0-beta.21 to v4, gives navigation.getChildNavigation is not a function HOT 3
- Invariant Violation HOT 5
- Changing imports from @react-navigation/core to react-navigation breaks web apps HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redux-helpers.