Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typeError: navigationStore.getStateForAction is not a function #3296

Closed
teilala opened this issue Sep 27, 2018 · 11 comments
Closed

typeError: navigationStore.getStateForAction is not a function #3296

teilala opened this issue Sep 27, 2018 · 11 comments
Labels

Comments

@teilala
Copy link

teilala commented Sep 27, 2018

in examples/react-native

"dependencies": {
"@babel/runtime": "^7.0.0",
"prop-types": "^15.6.2",
"react": "16.5.0",
"react-native": "0.57.1",
"react-native-button": "^2.3.0",
"react-native-message-bar": "^2.0.10",
"react-native-router-flux": "^4.0.3",
"react-native-screens": "^1.0.0-alpha.12",
"react-navigation": "2.16.x",
"react-navigation-deprecated-tab-navigator": "^1.3.0",
"react-navigation-stack": "^0.6.0"
},

always get this error

typeError: navigationStore.getStateForAction is not a function

2018-09-27 10 19 16

@aksonov
Copy link
Owner

aksonov commented Sep 27, 2018

Should be fixed with 4.0.4

@aksonov aksonov closed this as completed Sep 27, 2018
@RtzX
Copy link

RtzX commented Sep 29, 2018

me too.version: 4.0.4!

qq20180929-093705 2x

code:
qq20180929-094037 2x

@daviscabral
Copy link
Collaborator

@aksonov this seems still broken - the old API was not passing navigationStore but params.

@daviscabral daviscabral reopened this Sep 30, 2018
@aksonov
Copy link
Owner

aksonov commented Sep 30, 2018 via email

@aksonov
Copy link
Owner

aksonov commented Oct 1, 2018

Please check 4.0.5 version

@aksonov aksonov closed this as completed Oct 2, 2018
@vonwao
Copy link

vonwao commented Aug 30, 2019

I'm getting this error, for 4.0.6. I wonder what could be the cause

@ahsan-viabletree
Copy link

any update?

@gghnisan
Copy link

4.2.0, 4.3.0, the same.

@aliustaoglu
Copy link

Hmm this started happening to me after I upgraded RN 0.63.4 to RN 0.64.0

@ahsan-abrar
Copy link

ahsan-abrar commented Apr 8, 2021

here is a quick fix, downgrade react-native-router-flux to react-native-router-flux": "4.0.0-beta.27" and run these commands

watchman watch-del-all
yarn cache clean --force
npm cache clean --force # optional - in case you also have used npm
rm -rf node_modules/
rm yarn.lock
rm package-lock.json # optional - in case you also have used npm
rm -rf $TMPDIR/metro-*
rm -rf $TMPDIR/haste-*
yarn
yarn start --reset-cache

reference:
#3023

@sherxia92
Copy link

when upgrad react-native-route-flux.
<Router createReducer={reducerCreate} backAndroidHandler={this.onBackPress.bind(this)} panHandlers={this.panResponder()}>
should be remove attribute createReducer and panHandlers
like this
<Router backAndroidHandler={this.onBackPress.bind(this)}>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

10 participants