-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
React Native (in iOS): undefined is not an object (evaluating '_navigationStore2.default.router.getStateForAction') #3023
Comments
Downgrade to RNRF .27 and try |
@Blapi it does not work for me |
Can you show your package.json please? |
|
As I was expecting.. you should have a look at this https://docs.npmjs.com/files/package.json#dependencies Then, after you had a look and clearly understand this part, do the following steps :
|
@Blapi Still not working :( |
Try removing the {} in
|
@Blapi Hahaha nothing... I'm almost losing my hope in this... |
Check the version of RNRF in node_modules, it should be .27 and .27 isn't supposed to break. |
Check the version of RNRF in node_modules, it should be .27 and .27 isn't supposed to break.
Check that the imports are correct where you create the Router
Show me how you navigate through your app. Also, is it breaking only when you press on the TouchableOpacity ?
|
Is it still this ? |
Yes, But I also tried to change to ...onPress={() => Actions.search_product()}... but the error is still here |
What is you SearchProduct Component ? Is it the same behavior when you navigate to any other screen? |
Also, it is |
The code of my SearchProduct:
|
What is you SearchProduct Component ? Is it the same behavior when you navigate to any other screen?
Also, it is hideNavBar and not hidenavbar, but it should not fix your issue
|
Oh, I just realized you had the react-navigation dependency in your package.json, could you remove it please and retry with a fresh install ? |
I removed, and... Same thing :/ |
@baldeweb please try this: 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 This will make sure you are not with any wrong dependency being loaded there. |
Just in time, also update to the most recent version with a few updates related to the |
Closed due inactivity. |
Versions
I'm trying to make an action button (my button is a TouchableOpacity), when the user touche in the Login Button, it open a new Screen XPTO
But my onPress, on the Login is getting an error, like in this screenshot:
My project structure is like this:
Follow my codes:
index.js (root)
index.js (.src/)
Login.js (.src/Login)
The text was updated successfully, but these errors were encountered: