compliant with React Native 0.25 breaking changes

This commit is contained in:
Elliot Nash 2016-08-06 23:11:10 -04:00
parent 6d7a9ab249
commit 5a2c27a4ae
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() {