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

Android run time error: Strict mode does not allow function declarations in a lexically nested statement. #2

Open
slincke opened this issue Apr 16, 2017 · 4 comments
Assignees

Comments

@slincke
Copy link

slincke commented Apr 16, 2017

I'm a newbie with react native, so this could (easily) by my error, but I have the iOS version running and its looking great. I'd like to get it running on Android, but have run into the above issue when I try. I'd offer to fix it, but am not yet up to speed. Thanks for sharing this!

@drmas drmas self-assigned this Apr 16, 2017
@rtman
Copy link

rtman commented May 12, 2017

I believe its a version issue, try this in your dependencies. package.json

  "dependencies": {
    "@exponent/ex-navigation": "^1.5.29",
    "babel-preset-react-native-stage-0": "^1.0.1",
    "firebase": "^3.4.0",
    "react": "15.3.2",
    "react-native": "0.40.0",
    "react-native-gifted-chat": "0.0.10",
    "react-native-loading-spinner-overlay": "^0.3.0"
  }

Delete node modules folder and do npm install

@016chiang
Copy link

react-native:0.40.0 is not support iOS?

@shahwajahat99
Copy link

I am getting the same issue.

@waqaramjad
Copy link

same issue

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

No branches or pull requests

6 participants