Merge pull request #81 from getnashty/master

Replace requires by imports
This commit is contained in:
Alexey 2016-08-07 15:37:53 +02:00 committed by GitHub
commit ee617fb4b6
4 changed files with 7 additions and 23 deletions

View File

@ -1,11 +1,5 @@
const React = require('react');
const {View} = require('react-native');
const {
Component,
PropTypes
} = React;
const { requireNativeComponent } = require('react-native');
import React, { Component, PropTypes } from 'react';
import { View, requireNativeComponent } from 'react-native';
class BlurView extends Component {
render() {

View File

@ -1,10 +1,5 @@
const React = require('react');
const {
Component,
PropTypes
} = React;
const { requireNativeComponent } = require('react-native');
import React, { Component, PropTypes } from 'react';
import { requireNativeComponent } from 'react-native';
class BlurView extends Component {
render() {

View File

@ -1,4 +1,4 @@
const React = require('react');
import React from 'react';
class VibrancyView extends React.Component {
render() {

View File

@ -1,10 +1,5 @@
const React = require('react');
const {
Component,
PropTypes
} = React;
const { requireNativeComponent } = require('react-native');
import React, { Component, PropTypes } from 'react';
import { requireNativeComponent } from 'react-native';
class VibrancyView extends Component {
render() {