I’ve made too many Slack bots since 2015, so I decided to try something new and less comfortable. If you’ve written many services and back-ends as I have, you may have developed the same mental block as I when it came to client-side or front-end code. Since Artsy had been doing amazing things with React Native for a while, I committed myself to writing a mobile app in React Native, from scratch.
My pet project is called 33 Minutes, and it’s a “Strava for meetings”, starting with a basic weekly meeting budget tracker.
Getting Started with React Native?
create-react-native-app results with a bunch of code in a new folder. You can
npm install -g yarn,
yarn install and
yarn start from the generated folder. Launch an iOS simulator with
i and voila, a “Hello World”, 230MB, app.
Visual Studio Code
If you’ve never used Visual Studio Code, this is a good time to switch to it.
Hello World Code
The interesting part is in
render method that is called every time the component state changes and it returns a view with some text.
The code from this post is 33-minutes-app#f2bf31. In the next post I will add a toggle button.