Q:

Newline required at end of file but not found on using React Native

I can compile it succeed but it show the error message Newline required at end of file but not found under ;
Why ?  It's because that i don't use a class or what ?
I'm confused with it , some one can tell me why , thanks in advance.

A:

That's because of Eslint.
Either do it(put the new line after AppRegistry's line), or put this at the top of the file
/* eslint-disable eol-last */

This will force eslint to stop warning you. But just for 'eol-last' rule.

