react-native-grid icon indicating copy to clipboard operation
react-native-grid copied to clipboard

Upgrade to React-Native 0.30.0

Open abhaytalreja opened this issue 8 years ago • 0 comments

Hi There,

Thank you for the awesome work. I just upgraded react-native and seems like the way we get hold of a Component in react-native is changed.

Per https://github.com/facebook/react-native/releases/tag/v0.25.1,

Instead of:

import React, { Component, View } from 'react-native';

you should now:

import React, { Component } from 'react';
import { View } from 'react-native';

Temporary fix is, in grid.js and col.js add the line.

import React, { Component } from 'react';

Comment the line - grid.js and col.js

// var Component = _reactNative2['default'].Component;

Another thing to note, initially createElement was a part of the ReactNative (cause React was imported from ReactNative) - Now, we need to update the below

_reactNative2['default'].createElement

with:

React.createElement

in both the files.

abhaytalreja avatar Jul 22 '16 17:07 abhaytalreja