Giter VIP home page Giter VIP logo

Comments (8)

ws7one avatar ws7one commented on May 2, 2024 1

@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
screenshot_1540994937

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.

Ashoat avatar Ashoat commented on May 2, 2024

Thanks for the report! [email protected] should fix this.

from redux-helpers.

ws7one avatar ws7one commented on May 2, 2024

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.

screenshot_1540994285

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.

Ashoat avatar Ashoat commented on May 2, 2024

@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.

ggdegreat avatar ggdegreat commented on May 2, 2024

this helper doesn't worked for React Navigation v3.0

from redux-helpers.

shitou9999 avatar shitou9999 commented on May 2, 2024

same question,v3 and [email protected]

from redux-helpers.

Ashoat avatar Ashoat commented on May 2, 2024

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.

jannes-io avatar jannes-io commented on May 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.