npm i --save-dev gulp react-native-coffee
gulp = require 'gulp'require 'react-native-coffee'gulptask 'default''watch'
Create index.ios.coffee. Put your app in there.
gulp to bootstrap your compilation.
From now on, after you run
react-native run-ios, run
gulp. Coffeescript should ensue each time you make a change to your
Most approaches to adding Coffeescript to React Native require you to do some kind of boilerplate setup where you clone someone's project and then make your modifications to that.
This approach has some drawbacks, including:
This package makes it a litle simpler to add turnkey coffeescript compilation to a React Native project, assuming you don't want to modify the build process much.
Thanks to ReactNativeCoffee for inspiration/code samples