When we talk about our React Native setup in abstract, there are two kinds of “now draw The Tick” for iOS developers:
- How do I build this React Native as a CocoaPods setup?
- How do I get all the JavaScript tooling setup up?
We’re going to address the first part in this post. By the end of this post we’re going to get an Emission-like
repo set up for an existing OSS Swift iOS app called GitHawk. The aim being to introduce no
JavaScript tooling into GitHawk itself, and to only expose iOS-native UIViewControllers via a CocoaPod which is
consumed by GitHawk.
To do this we’re going to use the CocoaPods’ pod lib create template, and React Native’s react-native init to
make a self-contained React Native repo. It will export a JS file, and some native code which Podspec will
reference. This keeps the tooling complexity for iOS and React Native separate. Read on to start digging in.