Develop React Native with ReasonML. This will give you a React Native app called ReNative. Good for playing around, but you should probably follow the official template installation if you want to name you app something different.
- Install Homebrew
- Install Node.js (10 or higher, manually, Homebrew or nvm)
- Install Watchman:
brew install watchman
- Install Xcode + Xcode CLI tools (Xcode > Preferences ...)
- Install iOS simulator (Xcode > Preferences ...)
- Install CocoaPods:
sudo gem install cocoapods
- Clone repo and
yarn install
VS Code can automatically build your .re files to .bs.js with this extension: Reason Language Server / jaredly.reason-vscode
Seems flimsy though. Building can be disabled and the extension is good for things like autocomplete etc.
yarn re:build
or yarn re:watch
to watch for changes
Testing with Jest, react-test-renderer and bs-jest (write Jest tests in Reason). (There are Reason React bindings for Testing Library, but not yet for Reason React Native).
yarn test
or yarn test:watch
yarn test -u
to create new snapshots
iOS simulator yarn ios
or just yarn start
if the application is already built to the simulator
in a terminal yarn re:watch
in another terminal yarn test:watch
in another terminal yarn ios
or yarn start