3 ms·
While I've had no problems with React's coupling of components controller and view in one location, doesn't this suggest that it should be separated? One view f
by pests 12y ago
While I've had no problems with React's coupling of components controller and view in one location, doesn't this suggest that it should be separated? One view for web, one for RN using the same state and controller?
- underwater 12y agoThat's how we've approached the apps I've been involved in. Your Flux or Relay stores and non component modules can be shared. This isn't a hard and fast rule, just an acknowledgment that different platforms have different constraints and conventions. If you try and share all your code then you'll end up designing for the lowest common denominator, and your app will feel out of place.