React Native app not building for Android - SyntaxError: \ u may be followed by a Unicode character sequence

My application works fine on iOS, but will not work on Android. Last week I spent a lot of time for it to work, and thought it was so, and the problem returned.

enter image description here

Magazines show enter image description here

The full magazine is here if there is other material. https://pastebin.com/by6uCmPW

SyntaxError: \u can only be followed by a Unicode character sequence 

When I reboot, I get a white screen, no errors are displayed, and I can not get past this, and it does not change whether I connect to the debugger or not.

enter image description here

I looked at the source and the error comes from the next line

enter image description here

What is it from React source https://github.com/facebook/react-native/blob/a974c140db605ecbdf8d3faa7a079b7e2dcebb09/Libraries/ReactNative/YellowBox.js#L263

After the update, I get the following error in logcat, although there is nothing in the emulator.

06-14 13: 52: 10.467: E / art (2691): Implementation not found for com.facebook.react.bridge.Inspector com.facebook.react.bridge.Inspector.instance () (tried Java_com_facebook_react_bridge_Inspector_instance and Java_com_facebook_react_bridge_Inspector_ridge_Inspector_ridge

+4
source share
2 answers

, , , , , console.disableYellowBox = true; index.android.js .


Native docs

YellowBox console.disableYellowBox = true;. , , : console.ignoredYellowBox = ['Warning: ...'];.

RedBoxes YellowBoxes (production).


, , , , , .

, , (console.disableYellowBox = true; from index.android.js) {stacktraceVisible ? '\u{25BC}' : '\u{25B6}'} Stacktrace \src\node_modules\react-native\Libraries\ReactNative\YellowBox.js :

  • {stacktraceVisible ? '\u25BC' : '\u25B6'} Stacktrace
  • {stacktraceVisible ? '-' : '-'} Stacktrace

, , , yarn npm i.

+1

,

0

Source: https://habr.com/ru/post/1679237/


All Articles