React.addons in React Native

Is it possible to use React.addons in React Native, as listed on https://facebook.github.io/react/docs/addons.html.

Especially React.addons.LinkedStateMixin?

Yup, just make sure you use react-with-addons.js (or the minified version), and to the default react.js.

For example, if as seen in this gist, you can simply have the line var React = require('react-native/addons'); to include react-native with add ons.

My understanding is that react (open-source JS library dealing with the problems faced by web single-page app UI) and react native (open source framework that allows you to create native cross-platform mobile apps) are two different things, and that the react-with-addons are specifically to react, and therefore it is NOT supported by react native.

Comments

Popular posts from this blog

Meaning of `{}` for return expression

Get current scroll position of ScrollView in React Native

flutter websocket connection issue