A React Native Template for ClojureScript, Krell, and Storybook
npx react-native init YourProjectName --template react-native-template-cljs-krell-storybook
yarn cljs:build yarn run ios # or android
Component.stories.js respectively. Run
yarn storybook for an interactive
environment showing the look and feel of your components; they will live-reload
You can require your JS components in your ClojureScript views with
(def component-name (r/adapt-react-class (.-default (js/require "../js/ComponentName.js"))))
Note the path is just
../, regardless of where in your ClojureScript directory
hierarchy you are working from.
Bug reports, pull requests, and additions to the wiki are all extremely welcome. The biggest hurdle to getting started with ClojureScript on React Native is "it works on my machine." Eliminating these issues and documenting the solutions will help everyone get on with writing useful code.