I'm newbie to react native. Recently I've seen some tutorials about it. There is something vague for me.
Sometimes react will be added to the project like this:
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
And sometimes else it will be done like this:
var React = require('react-native');
Are these equivalent? If not, when exactly should I use which one?