React native does not give errors in undefined variables

In the native reaction, I noticed that undefined variables do not give an error. Instead, execution simply silently stops on the undefined variable. This slows down the development process. Is there a way to get a more explicit error? I have 'use strict;'at the top of my file, but it doesn't seem to help with this

EDIT:

Failure example:

      <Text style={{fontWeight: bold}}>Apply flow</Text>

In this case it boldshould be 'bold'. I would expect an undefined variable to be thrown, but instead, my application was just silent on this line.

+4
source share
1 answer

I'm not sure what is going on in your project, but I just tried this and got:

enter image description here

Xcode : ": : ". React Native 0.6.0.

0

All Articles