This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-12-15
Channels
- # adventofcode (1)
- # beginners (79)
- # boot (23)
- # cider (15)
- # cljs-dev (14)
- # cljsrn (27)
- # clojars (4)
- # clojure (172)
- # clojure-dusseldorf (23)
- # clojure-india (2)
- # clojure-italy (1)
- # clojure-nl (23)
- # clojure-russia (43)
- # clojure-spec (29)
- # clojure-uk (70)
- # clojurescript (97)
- # clr (8)
- # cursive (10)
- # datomic (69)
- # events (3)
- # garden (12)
- # hoplon (120)
- # immutant (34)
- # lein-figwheel (9)
- # leiningen (4)
- # off-topic (4)
- # om (10)
- # onyx (51)
- # rdf (1)
- # re-frame (15)
- # reagent (23)
- # ring-swagger (8)
- # test-check (3)
- # untangled (96)
- # yada (1)
hi all, my ignorance of javascript is getting in the way here. I’d like to try using this react component in reagent: https://github.com/joshwcomeau/react-flip-move
but when I include <script src=”https://unpkg.com/[email protected]/dist/react-flip-move.js”> </script>
, js/FlipMove
is still undefined?
I’d like to be able to try something like this: (def flip-move (r/adapt-react-class js/FlipMove))
but I’m confused about how this FlipMode react component gets loaded into the browser page? If it’s not under js/FlipMove
anyone know where to look off the top of their head?
React Interop Question: How do do this with reagent on a react component?
class HomeScreen extends React.Component {
/**
* This is where we can define any route configuration for this
* screen. For example, in addition to the navigationBar title we
* could add backgroundColor.
*/
static route = {
navigationBar: {
title: 'Home',
}
}
render() {
return (
<View style={{alignItems: 'center', justifyContent: 'center', flex: 1}}>
<Text>HomeScreen!</Text>
</View>
)
}
}
The render function is straightforward. But how do I create the route
attribute?
@seantempesta Is it react-native-navigation?
yeah. well, ex-navigation
Just react-native-navigation have the same configs 😄 and they also provide another options to do that)
It seems pretty different. Isn’t that a native navigation solution? Like completely different than ex-navigation
which uses NavigationExperimental?
that's right) but configs looks similar)
Is it stable? It looks like they are in the middle of a major api rewrite.
Hm, depends from your RN current version, I'm using it with 0.25 and have some small patches, but in general works fine and fast 😄 But you are right, they now rewrite api
Yeah, I can’t use that. I’m on a much later version of RN. Thanks for the info though.
I will try to answer on your original question anyway) What if you create class with (r/create-class)
and then do aset
on this instance?
@savelichalex: Nope. Now I’m getting this error:
ExceptionsManager.js:71 Warning: Something is calling a React component directly. Use a factory or JSX instead.
@ericfode @yogthos I will be on the "cljs over node" boat soon, shall we open a channel ?
@richiardiandrea That is the plan, there is a macchiato channel now
@terje I have already created it 🙂
#cljs-node, I should have announced it here as well duh