-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
React.js + React Native: Abstracting platform differences away #54
Comments
For measurement, we have an asynchronous API (we can't have anything synchronous in React native), that we designed to be polyfill-able in the browser. Ideally we want React Native to be a (good) subset of the browser. But in this case, since the browser doesn't have an API we came up with our own. |
For React.findDOMNode(), we have this.refs.blabla.getNodeHandle() that you can use to communicate with native. We want to converge the two at some point. |
Remove duplicate Dispatcher code in examples
Are there any plans on abstracting platform differences away?
For React.js I use React.findDOMNode, but also offsetLeft, offsetWidth, etc. Obviously these won't work inside React Native - so I was wondering if this is just how things are, or if there is some plan for abstracting this away?
The text was updated successfully, but these errors were encountered: