corymsmith / react-native-icons

Quick and easy icons in React Native
MIT License
1.14k stars 141 forks source link

"react": "15.2.1", "react-native": "0.31.0", #163

Closed jun-lu closed 8 years ago

jun-lu commented 8 years ago

package.json


{
  "name": "haixiu",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start"
  },
  "dependencies": {
    "react": "15.2.1",
    "react-native": "0.31.0",
    "react-native-icons": "^0.7.1",
    "react-native-image-slider": "^1.1.0"
  }
}
import Icon from 'react-native-icons'

error


2016-08-09 17:30:59.916 [warn][tid:main][RCTEventEmitter.m:52] Sending `websocketFailed` with no listeners registered.
2016-08-09 17:30:59.967 [error][tid:com.facebook.react.JavaScript] 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';

Check the release notes on how to upgrade your code - https://github.com/facebook/react-native/releases/tag/v0.25.1

2016-08-09 17:30:59.971 [fatal][tid:com.facebook.react.RCTExceptionsManagerQueue] Unhandled JS Exception: 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';

Check the release notes on how to upgrade your code - https://github.com/facebook/react-native/releases/tag/v0.25.1

2016-08-09 17:31:00.088 [error][tid:com.facebook.react.JavaScript] Module AppRegistry is not a registered callable module.
2016-08-09 17:31:00.090 [fatal][tid:com.facebook.react.RCTExceptionsManagerQueue] Unhandled JS Exception: Module AppRegistry is not a registered callable module.
corymsmith commented 8 years ago

This module is deprecated and should no longer be used