Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated for newest version of react native #5

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ChelseyM
Copy link
Contributor

@ChelseyM ChelseyM commented Aug 3, 2016

Requiring React from 'react-native' no longer works in latest versions of react.

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

@nicholeuf
Copy link

Can we merge this?

@getnashty
Copy link

+1

@chandlervdw
Copy link

chandlervdw commented Nov 30, 2016

This PR actually breaks with react-native 0.38. Importing ES6-style fixes it.

var React = require('react-native');
var window = React.Dimensions.get('window');
var {View, NativeMethodsMixin} = React;
var React = require('react');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

const window = Dimensions.get('window');

@Naoto-Ida
Copy link

Is their any chance this will be merged? This will probably help me figure out an issue with a listview inside a scrollview.

@jaimeagudo
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants