FireChat icon indicating copy to clipboard operation
FireChat copied to clipboard

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

Open slincke opened this issue 8 years ago • 4 comments

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!

slincke avatar Apr 16 '17 16:04 slincke

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

rtman avatar May 12 '17 17:05 rtman

react-native:0.40.0 is not support iOS?

016chiang avatar Nov 09 '17 09:11 016chiang

I am getting the same issue.

shahwajahat99 avatar May 04 '18 14:05 shahwajahat99

same issue

waqaramjad avatar Jul 12 '19 04:07 waqaramjad