Skip to content

Issue Causing ReactNative.createElement #693

Closed
@danibrear

Description

@danibrear

Version

v3 is SLOW for Android right now (because React Native ExperimentalNavigation is slow), see #355, no need to create new issue!
Tell us which versions you are using (react native 0.22 is required for v3!):

  • react-native-router-flux v3.22.23
  • react-native v0.25.1

Expected behavior

Source code on github for version 3.22.23 has

import React from 'react';

inside of Scene.js (there are other files but this has been my litmus test) but when I do npm install --save react-native-router-flux it pulls down version 3.22.23 but in Scene.js it has:

import React from 'react-native';

Other files throw the the warning ReactNative.createElement is deprecated. Use React.createElement from the "react" package instead.

screen shot 2016-05-17 at 8 45 17 am

screen shot 2016-05-17 at 8 45 40 am

screen shot 2016-05-17 at 8 46 02 am

screen shot 2016-05-17 at 8 46 21 am

package.json:

{
  "name": "testProject",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "flow": "flow; test $? -eq 0 -o $? -eq 2"
  },
  "dependencies": {
    "key-mirror": "^1.0.1",
    "lodash": "^4.12.0",
    "react": "^0.14.8",
    "react-native": "^0.25.1",
    "react-native-keyboard-spacer": "^0.2.0",
    "react-native-router-flux": "^3.22.23",
    "react-redux": "^4.4.5",
    "redux": "^3.5.2",
    "redux-thunk": "^2.1.0"
  },
  "devDependencies": {
    "flow-bin": "^0.24.2"
  }
}

Steps to reproduce

  1. cleared my cache with npm cache clear react-native-router-flux
  2. Verified there was no react-native-router-flux inside my ~/.npm directory
  3. Started a new react native project react-native init testProject
  4. Added react-native-router-flux to the project npm install --save react-native-router-flux
  5. Start App up and observe issue.

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