&Yes - Devlog 1 - Setting Up Environment

&Yes - Devlog 1 - Setting Up Environment

Previously: The Beginning

React Native Research

So to get me off the ground, I am a big fan to have a quick glance at a topic via Youtube videos. All the information available rarely sticks just by watching a video, but it is a nice way to get a bird's eye view.

Found this tutorial, which gave me a rough understanding of how to setup my environment:

React Native's documentation is also a great source of information if you prefer reading:

Creating repo

I am not going to go into setup up your device with IDE, Node, etc. But if you have all that setup creating a repo is almost too easy. It only takes two commands to get a repo setup on your computer.

First, install via npm:

npm install -g expo-cli

Then create a repo with the name of your choice:

expo init and-yes

I chose to init my repo with tabs (TypeScript) because I prefer Typescript and as I am completely new to react-native I thought it would be good to start off with just a bit of a skeleton.

No alt text provided for this image

Running the app

Expo will take a few minutes to initialize your repo and install the required npm packages. Once completed I have a repo with some sample components to get me started. I can run one of the following commands to run my app:

No alt text provided for this image

As I have not setup Android Studio or Xcode locally yet, I therefore can't emulate a mobile device at the moment. Meaning i can't run "npm run android" or "npm run ios". I will set this up later, but the Youtube video I linked at the top, gives a nice step-by-step guide on how to do this.

This still leaves me with two ways to run the app. I can run it in the browser locally with:

npm run web

This opens the simple init app with a couple of tabs and not much else. It's all very dark as I am a big fan of dark mode ?? If you do this you might have an app that will burn your eyeballs with bright white light ??

No alt text provided for this image

Another option is to run it on your own device with an app called "Expo Go", if you have this then you can run:

npm start

This gives you a QR code:

No alt text provided for this image

On my iPhone I can simply scan this with the camera:

No alt text provided for this image

This will open Expo Go, install the app, and voila:

No alt text provided for this image

Yay, I have an app ?? Well, at least the base framework, this was probably the easiest step.

Node package versions

One last thing that I am going to do is to lock all the version dependencies in my package.json file. This is not a mandatory step, but a strong preference. If the version number is prefixed by ^ or ~, the node framework will automatically pick up any minor version upgrades available when you run npm i. You can read more here about how it does this exactly (https://nodejs.dev/learn/semantic-versioning-using-npm).

No alt text provided for this image

By default, a lot of the dependencies are set to allow minor upgrades. I have spent too many hours of my life trying to figure out why my code stopped working. Just to find out that some minor release did not support my OS or introduced a bug for my specific setup. Hence, I am going to be very static and lock myself in. I can later look at how to review any new versions in an automated way.

I had to bump some of the versions after removing the ^ and ~, your IDE should give you a hint as to what version to bump to.

That was all for this time! ????

Stay fresh and remember to enjoy life!

Next: Product Board and Ideas

要查看或添加评论,请登录

?? Adam Kvist Lamaa的更多文章

  • &Yes - Devlog 3 - Styling

    &Yes - Devlog 3 - Styling

    Previously: Product Board and Ideas UI Styling I am not going to spend energy on styling for the time being. The reason…

  • &Yes - Devlog 2 - Product Board & Ideas

    &Yes - Devlog 2 - Product Board & Ideas

    Previously: Setting Up Environment Trello I enjoy using a board when I work. The ability to garbage collect all the…

    2 条评论
  • &Yes - Devlog 0 - The Beginning

    &Yes - Devlog 0 - The Beginning

    TL:DR I want to make an app, this article sketches out the reason and scope of it, more articles will follow! The Why…

    3 条评论
  • Fixing broken help.sap.com links

    Fixing broken help.sap.com links

    If you search for information about SuccessFactors online, I am sure that you have come across this screen more than…

    7 条评论
  • How to manage access in SAP SuccessFactors - Part 3

    How to manage access in SAP SuccessFactors - Part 3

    When it comes to IT systems that stores sensitive information, access is a hot topic these days. An HR system like SAP…

  • How to manage access in SAP SuccessFactors - Part 2

    How to manage access in SAP SuccessFactors - Part 2

    When it comes to IT systems that stores sensitive information, access is a hot topic these days. An HR system like SAP…

  • How to manage access in SAP SuccessFactors - Part 1

    How to manage access in SAP SuccessFactors - Part 1

    When it comes to IT systems that stores sensitive information, access is a hot topic these days. An HR system like SAP…

    3 条评论
  • Extending your SuccessFactors Cloud

    Extending your SuccessFactors Cloud

    For more than 10 years, GP Strategies has helped clients implement the full SAP SuccessFactors HCM suit, guiding our…

社区洞察

其他会员也浏览了