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'); import React, { Component, PropTypes } from 'react';
const {View} = require('react-native'); import { View, requireNativeComponent } from 'react-native';
const {
Component,
PropTypes
} = React;
const { requireNativeComponent } = require('react-native');
class BlurView extends Component { class BlurView extends Component {
render() { render() {

View File

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

View File

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

View File

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