mirror of
https://github.com/status-im/react-native-blur.git
synced 2025-01-19 21:08:54 +00:00
Merge pull request #81 from getnashty/master
Replace requires by imports
This commit is contained in:
commit
ee617fb4b6
@ -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() {
|
||||||
|
@ -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() {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
const React = require('react');
|
import React from 'react';
|
||||||
|
|
||||||
class VibrancyView extends React.Component {
|
class VibrancyView extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
|
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user