Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Is react-transmit-native deprecated? #69

Open
bdougie opened this issue Jan 9, 2017 · 2 comments
Open

Is react-transmit-native deprecated? #69

bdougie opened this issue Jan 9, 2017 · 2 comments

Comments

@bdougie
Copy link

bdougie commented Jan 9, 2017

What is this?

Correct me if I am wrong but having a separate react-native library is not necessary since React Native now relies on React directly for its Component(CreateClass) API.

I only came to this conclusion when starting a project with the React Native version and got the below error when running tests. I have not looked at the internals as of yet, but assume the React Native library is looking for things that are no longer available in newer versions of React Native.

Currently using 0.39.2

    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
@bdougie bdougie changed the title Is react-transmit-native depricated? Is react-transmit-native deprecated? Jan 9, 2017
@bdougie
Copy link
Author

bdougie commented Feb 11, 2017

@RickWong open a PR for a README change. I tested it on my 0.40 app and it works.

@bdougie
Copy link
Author

bdougie commented Feb 14, 2017

Just discovered that an unrelated dependency I used for testing, react-native-mock, actually helps react-transmit proper work with react-native.

Since react-transmit-native no longer works with newer versions of react-native. react-transmit needs react-dom, which is where react-native-mock comes in.

As an aside: I have been using this project as a basis for a talk I have given at local meetups and would love to continue to do so at a future conference. If there is anything I can assist with with, I would love to help out to keep this project going. I might poke around to more fo the source and see if I can commit to updating the DOCS.md

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

No branches or pull requests

1 participant