Skip to content

React Native support for backbone-react-component #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

visigoth
Copy link

these changes seem to be the minimal amount needed to make backbone-react-component usable in react-native. it's been really useful to me and i figure others will find backbone-react-component handy in their react-native projects as well.

},
// Sets `this.el` and `this.$el` when the component updates.
componentDidUpdate: function () {
this.setElement(React.findDOMNode(this));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe something like if (React.findDOMNode) is better to avoid having to set an extra flag for it (isReactNative)?

@magalhas
Copy link
Owner

Hi @visigoth. I commented the changes a little bit, please take a look 👍

React Native 0.14.0's packager fails when a require() doesn't
resolve (rather than dispatching a caught exception).
@magalhas
Copy link
Owner

@visigoth it seems you're still working on your fork. What's the status on it?

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

Successfully merging this pull request may close these issues.

2 participants