Skip to content
This repository was archived by the owner on Aug 20, 2019. It is now read-only.
This repository was archived by the owner on Aug 20, 2019. It is now read-only.

Upgrade to React-Native 0.30.0 #1

Description

@abhaytalreja

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions