react-native-floating-label-text-input
react-native-floating-label-text-input copied to clipboard
Error: Seems you're trying to access 'ReactNative.createClass' from the 'react-native' package
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';
I have the same error message with same version of react
Got it working, thanks a bunch!
still an issue?