react-native-floating-label-text-input icon indicating copy to clipboard operation
react-native-floating-label-text-input copied to clipboard

Error: Seems you're trying to access 'ReactNative.createClass' from the 'react-native' package

Open christophby opened this issue 8 years ago • 3 comments

With react-native 0.29.0 I got the error-message

Seems you're trying to access 'ReactNative.createClass' from the 'react-native' package. Perhaps you meant to access 'React.createClass' from the 'react' package instead? For example, instead of: import React, { Component, View } from 'react-native'; You should now do: import React, { Component } from 'react'; import { View } from 'react-native';

To fix this in 'index.js'

var React = require('react-native');
var { StyleSheet, Text, View, TextInput, Animated } = React;

should be changed to

import React from 'react';
import { StyleSheet, Text, View, TextInput, Animated } from 'react-native';

christophby avatar Jul 12 '16 11:07 christophby

I have the same error message with same version of react

SleepyFanjo avatar Sep 29 '16 01:09 SleepyFanjo

Got it working, thanks a bunch!

3DJakob avatar Oct 29 '16 21:10 3DJakob

still an issue?

eyaleizenberg avatar Oct 30 '16 06:10 eyaleizenberg