cljsrn

https://github.com/drapanjanas/re-natal | https://github.com/drapanjanas/re-natal/wiki/FAQ | https://github.com/condense/mercury-app/wiki | https://github.com/seantempesta/expo-cljs-template/ https://www.npmjs.com/package/create-expo-cljs-app
George Ciobanu 2021-02-19T06:35:33.116700Z

Apologies for the potentially super noob question. I'm using Krell (https://github.com/vouch-opensource/krell) to develop a mobile app and want to add more react native components such as Switch and Navigator. But the file https://github.com/vouch-opensource/reagent-react-native/blob/master/src/reagent/react_native.cljs does not include switch and many other react native components. I tried adding it by hand but it doesn't work. Am I missing anything super obvious? Any help would be much appreicated

2021-02-19T10:33:39.120900Z

@geo.ciobanu You can require (:require [react-native :as rn] in your namespace, then call Switch like that [:> rn/Switch {:value ,,,}] . Make sense? [:> ,,,] is a macro shortcut for reagent/adapt-react-class : https://github.com/reagent-project/reagent/blob/master/doc/InteropWithReact.md#creating-reagent-components-from-react-components

George Ciobanu 2021-02-19T17:30:16.121200Z

Thank you so so much Michael!

2021-02-19T17:54:09.121400Z

You're welcome!