By accident I have assigned require('react-native') to a variable other than React and It failed to execute. hmmm...
This code works fine
varReact=require('react-native');var{
Component,
View
}=React;classMyAppextendsComponent{render(){return(<View></View>);}}module.exports=MyApp;By this one doesn't
varTest=require('react-native');var{
Component,
View
}=Test;classMyAppextendsComponent{render(){return(<View></View>);}}module.exports=MyApp;Here's what I got as an error:

By accident I have assigned require('react-native') to a variable other than
Reactand It failed to execute. hmmm...This code works fine
By this one doesn't
Here's what I got as an error:
