Skip to content
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

Unable to use with react-native #116

Closed
BinaryMuse opened this issue Apr 6, 2015 · 4 comments
Closed

Unable to use with react-native #116

BinaryMuse opened this issue Apr 6, 2015 · 4 comments

Comments

@BinaryMuse
Copy link
Owner

Reported in Gitter by @lazywei. Throws the following error:

fluxxor-react-native

@BinaryMuse
Copy link
Owner Author

Fixed in v1.5.3.

@lazywei
Copy link

lazywei commented Apr 7, 2015

🍻

@jonaswindey
Copy link

How do you pass your flux instance to your AppRegistry.registerComponent?

@lazywei
Copy link

lazywei commented Jun 9, 2015

@jonaswindey I use context.

var MyRN = React.createClass({

  childContextTypes: {
    flux: React.PropTypes.object,
  },

  getChildContext() {
    return {
      flux: flux,
    };
  },

});

AppRegistry.registerComponent("MyRN", () => MyRN);

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

No branches or pull requests

3 participants