Anybody used redux on web and react native to share business logic across platforms, but mostly kept views platform specific? What did you like/dislike?
-
-
Replying to @ryanflorence
We are doing that with react-native-web. All is shared except for the presentational view components which are loaded based on the platform with everything being passed from the props. Likes: shared codebase for web, mobile-web & apps. Dislikes: bloated props and bad IDE support
1 reply 0 retweets 1 like -
Replying to @kamranahmedse
Tell me about the IDE support problems, that’s escaping me.
1 reply 0 retweets 1 like -
Replying to @ryanflorence
All the view components are named as "*.web.js", "*.ios.js", "*.native.js", "*.android.js" while imports do not contain the ".platform.js" part and are automatically resolved at the runtime based on the platform, so IDE (WebStorm) does not provide the intellisense/usage detection
1 reply 0 retweets 1 like -
Replying to @kamranahmedse @ryanflorence
Thanks for pointing that out! We will see how we can fix that on our side.
1 reply 0 retweets 8 likes
We've reported an issue about the problem with usages. Please follow it for the updates: https://youtrack.jetbrains.com/issue/WEB-33943
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.