This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-23
Channels
- # beginners (114)
- # cljsrn (19)
- # clojure (35)
- # clojure-austin (1)
- # clojure-italy (9)
- # clojure-russia (8)
- # clojure-spec (6)
- # clojure-uk (5)
- # clojurescript (32)
- # datomic (12)
- # editors (3)
- # emacs (1)
- # hoplon (4)
- # jobs (6)
- # jobs-discuss (1)
- # luminus (2)
- # onyx (11)
- # parinfer (2)
- # portkey (6)
- # re-frame (7)
- # reagent (9)
- # remote-jobs (3)
- # schema (2)
- # shadow-cljs (23)
- # spacemacs (2)
- # specter (13)
- # vim (3)
- # yada (6)
Hello, I've been working on a react native app with clojurescript, and wanted to add cljs-react-navigation to the project. The problem is that the stack navigator seems to (re-)render all of its screens at once, which is a problem since one of my screens records a video and the next one plays it back (so if the one that plays the video back tries to find a video before it gets recorded, bad things happen). Is there a way to organize screens in cljs-react-navigation so that they don't all get rendered at once?
Seems like no one's on right now, I'll come back tomorrow.
@yoshiquest I’m sure people have different opinion about this but I would really evaluate if you need the react-navigation style approaches to managing your application or you can achieve a similar result in other ways
without being familiar with all the details of react-navigation (I tried to integrate it once though): it’s “alluring” to have a centralized and consistent approach for navigating your app… in theory… but when you really think about what it’s doing for you… it’s not all that much: - TabNavigator is just (condp = …) statement over some app state prop; - Drawer is… just a slideUp animation that can be implemented with native performance using something like https://github.com/oblador/react-native-animatable One thing that it’s doing for you is this: StackNavigation “controller” with excellent cross device performance and “native feel” - is your app going to be very View stack heavy? if your app has the structure of say, the iOS Settings, then yes… but if it’s more “feed-style” like Instagram then perhaps the stack is not so essential
@bhauman how are your experiments with RN coming along?
@pesterhazy coming along very well thank you, I'm just about to submit a PR to re-natal
The figwheel-bridge.js in the above pull request should work great with Figwheel 0.5.14-SNAPSHOT
I'm back. @raspasov I had no idea about react-native-animatable. Since all I wanted was the transitions between screens, I might take a look at that instead then. Thanks!