4 ms·
Hi! I'm the author. Let me know if you have questions that aren't covered in the post.
by spicyj 8y ago
Hi! I'm the author. Let me know if you have questions that aren't covered in the post.
- dman 8y agoAny plans for desktop support? (especially Linux)
- spicyj 8y agoNo concrete plans, but I'd love to see it happen someday!
- mephitix 8y agoHi - What's the latest philosophy/best practices on interop with React web? Is the philosophy still 'learn once write everywhere'? There are so many different approaches now to reuse React Native with React, like react-native-web and react-native-dom, it's confusing. Some of those solutions are non-starters for me since I started with a React webapp and want to now have a React Native app that shares most of my existing code. My gut feeling is just stick with HOCs, SFCs, proper isolation of the views and I'll be able to share the bulk of things like action creators, reducers, etc. Is this reasonable? Are there other good practices?
- spicyj 8y agoYour plan of sharing business logic sounds good. We don't currently have any recommended way to share code between web and iOS/Android, although I'm hopeful we will at some point in the future.
- madeofpalk 8y agoI'm actually curious - how does the React (Native) team feel about such efforts? Initially RN was pitched not for cross platform app development, but "learn once, write anywhere". I guess this is the reason why sharing more code between RN and web hasn't been prioritised by the FB RN team, but do you see your team wanting to encourage this?
- rpeden 8y agoFor sharing code (even view code) between React Native and React web projects, also consider Microsoft's ReactXP project[1]. It is very actively developed and might be what you're looking for. [1] https://github.com/Microsoft/reactxp https://github.com/Microsoft/reactxp
- mephitix 8y agoHave you used it? I saw it before but felt wary about having yet another layer above RN and React. I’ve been burned by taking on too many dependencies doing magical/black box things in the past...
- empyrical 8y agoIs there any of this new architecture on the master branch yet? I am currently working on a React Native renderer and would like to try and make sure it will be compatible with this re-architecture.
- spicyj 8y agoMost of the code is in the repo in React/Fabric/ and ReactCommon/fabric/ but unfortunately it's not runnable yet due to some missing dependencies that aren't currently in the open source repo.
- empyrical 8y agoWill the ability to make synchronous JS calls allow for something like preventDefault() on events?
- spicyj 8y agoYes, we'll likely support some form of this. It's important for controlled native components too (ex: text inputs).
- ItsMe000001 8y agoI already posted a comment before seeing your question, so here is just the main point: Will React Native finally support exchanging BINARY data (ArrayBuffer, TypedArray) across the bridge?
- Jonovono 8y agoAwesome, thanks for posting this! Been hearing/reading some of the claims that FB is done supporting RN and it got me spooked :p We've been working on a RN project [1] for the list 6 months or so. Although it's been a bumpy ride - overall I have loved it. RN mixed with Firebase has been an awesome experience. [1]: https://itunes.apple.com/us/app/bunch-group-video-chat-games/id1294869021?mt=8 https://itunes.apple.com/us/app/bunch-group-video-chat-games...
- akavel 8y agoCould you possibly say in more detail where in the RN codebase can I find the exact code which generates the "single JSON message that lists mutations to perform" that you claim? I'm super interested and desperately trying to pinpoint it, but I'm having really serious trouble with that :( (Cross-posted this question to: https://stackoverflow.com/q/50873408 https://stackoverflow.com/q/50873408) (I've already asked this in a post on the parent thread, but I let myself copy it here in hope there may be higher chance you'll read it that way...)