react-native-responsive icon indicating copy to clipboard operation
react-native-responsive copied to clipboard

Cannot run example

Open Rimobul opened this issue 8 years ago • 1 comments

I have tried the example project, but it does not run neither on Android, nor iOS.

On Android, the application builds, but then I get this: java.util.RuntimeException: SyntaxError: Strict mode does not allow function declarations in a lexically nested statement. (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:10403).

On iOS the application does not even pass the build process, XCode gives me 2 errors saying "Ignoring return value of function declared with 'warn_unused_result' attrubute", lines 494 and 1334 in RCTSRWebSocket.m.

Rimobul avatar Apr 05 '17 07:04 Rimobul

Open RCTWebSocket project and remove all the flags in Build settings > Custom compiler flags 0f397686-566d-11e6-8db5-76a17cbd620b

mattermoran avatar Nov 04 '17 08:11 mattermoran