Skip to main content

Learning Together: React Native (Setting up your device)

(Please bear in mind that I mean what I put on the title. I am also learning this right now and whatever I learn, I post it on this blog.)

First job is to set up your device. I use a windows 10 computer. Lets assume that our computer has nothing. We have to set it up from scratch. 

Firstly we need to have java installed on our computer. Go ahead, search java 8 on google. Use this link to download java. Check your windows bit version (This PC-> Properties. Check System Type under System section). Install it. (One noob advice, don't install java 10 😉)

Next thing you need is to set up you computers environment. Go to Control Panel->System and Security->System. Click on Advanced system settings. Click Environment Variables... You will see a window like this.

In the system variables section, find a variable named Path, select it, click on Edit


Click New, add these two location "C:\Program Files\Java\jdk1.8.0_171\bin" and "C:\Program Files\Java\jre1.8.0_171\bin". That's it, your device is now equiped with java 8.

Now the next thing. Your computer should have node.js. because we will use npm. Use this link to download node.js and install it. 

Now open windows powershell. Type npm install -g react-native-cli. This will install react-native-cli package on your computer. Now type npm install -g yarn. Yarn is a javascript package manager.

Another thing you need to have in your computer is Android SDK. You can download Android SDK from here and install it. After you install SDK, it is very important to add two variables in Environment variables. One is ANDROID_HOME and another one is ANDROID_SDK_HOME. you can see this image for reference.



(Please make sure that your Android SDK installation path in in C:\Users\[Name of User]\AppData\Local\Android.)

Now your computer is ready for developing react-native cross platform mobile app. Lets build our first app. Go to any location of your computer. Type react-native init myApp. This will initialize and create a folder named myApp. There is a default app. You can run this on your mobile now. Connect a mobile using USB cable. Make sure your developer mode is on. Open powershell on myApp folder and type react-native run-android. Now look at your mobile. You will see something on screen. 



CONGRATULATIONS!!! It's your first react native mobile app. It does nothing (😉😜), but it still is something. Right?

*If you see an error like, You have not accepted licence agreement of the following SDK components, Please go to your SDK folder, open tools, then bin and open a command propmt or power shell there. enter this command sdkmanager --licenses. press Y for every option. And then you are set

Stay Tuned for next.

Comments

Some of My Bests

āĻĄাāĻŸা āĻ¸্āĻŸ্āĻ°াāĻ•āĻšাāĻ°- āĻ¸্āĻŸ্āĻ¯াāĻ• (Stack)

Programming is all about data manipulation. Data structure is way of storing data for further manipulation. āĻĄাāĻŸা āĻ¸্āĻŸ্āĻ°াāĻ•āĻšাāĻ° āĻ†āĻŽাāĻĻেāĻ°āĻ•ে āĻŦিāĻ­িāĻ¨্āĻ¨ āĻĄাāĻŸা āĻ¸াāĻœিā§Ÿে āĻ°াāĻ–াāĻ° āĻŦ্āĻ¯āĻŦāĻ¸্āĻĨা āĻ•āĻ°ে āĻĻেā§Ÿ। āĻĄাāĻŸা āĻ¸াāĻœিā§Ÿে āĻ°াāĻ–াāĻ° āĻ…āĻ¨েāĻ• āĻ—ুāĻ˛ো "āĻ¤āĻ°িāĻ•া" āĻ†āĻ›ে। āĻ•োāĻ¨āĻ•িāĻ›ু āĻ†āĻŽāĻ°া āĻ•েāĻ¨ āĻ¸াāĻœিā§Ÿে āĻ°াāĻ–ি? āĻ¯েāĻ¨ āĻĒāĻ°ে āĻ¨িāĻ°্āĻĻিāĻˇ্āĻŸ āĻāĻ•āĻŸা āĻĄাāĻŸা āĻ¸āĻšāĻœে āĻ–ুঁāĻœে āĻĒেāĻ¤ে āĻĒাāĻ°ি। "āĻ¤āĻ°িāĻ•া" āĻ—ুāĻ˛োāĻ° āĻ¨াāĻŽ Array, Stack, Queue, Linked List, Tree, Graph. āĻāĻ—ুāĻ˛া āĻļ āĻ–াāĻ¨েāĻ• āĻĄাāĻŸা āĻ¸্āĻŸ্āĻ°াāĻ•āĻšাāĻ°েāĻ° āĻŽāĻ§্āĻ¯ে āĻ•িāĻ›ুāĻ° āĻ¨াāĻŽ, āĻ¯েāĻ—ুāĻ˛ো āĻ…āĻ¨েāĻ• āĻŦেāĻļি āĻŦ্āĻ¯āĻŦāĻšাāĻ° āĻšā§Ÿ। āĻāĻ‡ āĻĒোāĻ¸্āĻŸāĻŸা āĻ¸্āĻŸ্āĻ¯াāĻ• āĻŦুāĻাāĻ¨োāĻ° āĻœāĻ¨্āĻ¯। āĻ¸্āĻŸ্āĻ¯াāĻ• āĻ–ুāĻŦāĻ‡ āĻ‡āĻ¨্āĻŸেāĻ°েāĻ¸্āĻŸিং āĻāĻ•āĻŸা āĻĄাāĻŸা āĻ¸্āĻŸ্āĻ°াāĻ•āĻšাāĻ°। āĻ…āĻ¨েāĻ• āĻ•াāĻ°āĻ¨েāĻ‡ āĻāĻŸা āĻŦ্āĻ¯াāĻŦāĻšাāĻ° āĻšā§Ÿ। āĻ†āĻ—ে āĻ¸্āĻŸ্āĻ¯াāĻ• āĻ•āĻ¨āĻ¸েāĻĒ্āĻŸāĻŸা āĻ¨িā§Ÿে āĻ†āĻ˛োāĻšāĻ¨া āĻ•āĻ°া āĻ¯াāĻ•। āĻ¸্āĻŸ্āĻ¯াāĻ• āĻŦāĻ˛āĻ¤ে āĻŦোāĻাā§Ÿ āĻāĻ•āĻŸাāĻ° āĻ‰āĻĒāĻ° āĻāĻ•āĻŸা āĻ¸াāĻœাā§Ÿে āĻ°াāĻ–া। āĻŦিā§ŸেāĻ° āĻŦাā§œিāĻ¤ে āĻ†āĻ—ে āĻŽেāĻ˛াāĻŽাāĻ‡āĻ¨েāĻ° āĻ—্āĻ˛াāĻ¸ āĻĻেāĻ–া āĻ¯েāĻ¤ āĻāĻ•āĻŸাāĻ° āĻ­েāĻ¤āĻ° āĻ†āĻ°েāĻ•āĻŸা āĻĸুāĻ•াā§Ÿে āĻ˛āĻŽ্āĻŦা āĻāĻ•āĻŸা āĻĒাāĻ‡āĻ˛ āĻ¤ৈāĻ°ি āĻ•āĻ°ে āĻāĻ•āĻ¸াāĻĨে āĻ•্āĻ¯াāĻ°ি āĻ•āĻ°া āĻšāĻš্āĻ›ে। āĻāĻŸা āĻāĻ•āĻŸা āĻ¸্āĻŸ্āĻ¯াāĻ•। āĻĒ্āĻ°োāĻ—্āĻ°াāĻŽিং āĻāĻ° āĻ­াāĻˇাā§Ÿ āĻ¸্āĻŸ্āĻ¯াāĻ• āĻāĻ•্āĻ¸াāĻ•্āĻŸāĻ˛ি āĻ¸েāĻ‡āĻŽ āĻœিāĻ¨িāĻ¸āĻ‡। āĻ¤āĻŦে āĻāĻ•āĻŸু āĻ˜āĻˇাāĻŽাāĻœা āĻ†āĻ›ে। āĻ†āĻ°েāĻ•āĻŸা āĻ‰āĻĻাāĻšāĻ°āĻŖ āĻĻেā§Ÿা āĻ¯েāĻ¤ে āĻĒাāĻ°ে। āĻŦā§ŸাāĻŽেāĻ° āĻ­েāĻ¤āĻ° āĻāĻ•āĻŸাāĻ° āĻĒāĻ° āĻ†āĻ°েāĻ•āĻŸা āĻŦিāĻ¸্āĻ•িāĻŸ āĻĸুāĻ•িā§Ÿে āĻ°াāĻ–া āĻšā§Ÿ। āĻš্āĻ¯া, āĻāĻ‡āĻŸা āĻĒাāĻ°āĻĢেāĻ•্āĻŸ āĻ‰āĻĻাāĻšāĻ°āĻŖ āĻšā§ŸেāĻ›ে। āĻāĻ‡...

āĻĄাāĻŸা āĻ¸্āĻŸ্āĻ°াāĻ•āĻšাāĻ°- āĻ•িāĻ‰ (Queue)

Programming is all about data manipulation. Data structure is way of storing data for further manipulation. āĻĄাāĻŸা āĻ¸্āĻŸ্āĻ°াāĻ•āĻšাāĻ° āĻ†āĻŽাāĻĻেāĻ°āĻ•ে āĻŦিāĻ­িāĻ¨্āĻ¨ āĻĄাāĻŸা āĻ¸াāĻœিā§Ÿে āĻ°াāĻ–াāĻ° āĻŦ্āĻ¯āĻŦāĻ¸্āĻĨা āĻ•āĻ°ে āĻĻেā§Ÿ। āĻĄাāĻŸা āĻ¸াāĻœিā§Ÿে āĻ°াāĻ–াāĻ° āĻ…āĻ¨েāĻ• āĻ—ুāĻ˛ো "āĻ¤āĻ°িāĻ•া" āĻ†āĻ›ে। āĻ•োāĻ¨āĻ•িāĻ›ু āĻ†āĻŽāĻ°া āĻ•েāĻ¨ āĻ¸াāĻœিā§Ÿে āĻ°াāĻ–ি? āĻ¯েāĻ¨ āĻĒāĻ°ে āĻ¨িāĻ°্āĻĻিāĻˇ্āĻŸ āĻāĻ•āĻŸা āĻĄাāĻŸা āĻ¸āĻšāĻœে āĻ–ুঁāĻœে āĻĒেāĻ¤ে āĻĒাāĻ°ি। "āĻ¤āĻ°িāĻ•া" āĻ—ুāĻ˛োāĻ° āĻ¨াāĻŽ Array, Stack, Queue, Linked List, Tree, Graph. āĻāĻ—ুāĻ˛া āĻļ āĻ–াāĻ¨েāĻ• āĻĄাāĻŸা āĻ¸্āĻŸ্āĻ°াāĻ•āĻšাāĻ°েāĻ° āĻŽāĻ§্āĻ¯ে āĻ•িāĻ›ুāĻ° āĻ¨াāĻŽ, āĻ¯েāĻ—ুāĻ˛ো āĻ…āĻ¨েāĻ• āĻŦেāĻļি āĻŦ্āĻ¯āĻŦāĻšাāĻ° āĻšā§Ÿ। āĻāĻ‡ āĻĒোāĻ¸্āĻŸāĻŸা āĻ•িāĻ‰ āĻŦুāĻাāĻ¨োāĻ° āĻœāĻ¨্āĻ¯। āĻ•িāĻ‰ āĻœিāĻ¨িāĻ¸āĻŸাāĻ° āĻ¸াāĻĨে āĻ†āĻŽāĻ°া āĻ¸āĻŦাāĻ‡ āĻĒāĻ°িāĻšিāĻ¤। āĻœীāĻŦāĻ¨ে āĻ†āĻŽāĻ°া āĻ¸āĻŦাāĻ‡ āĻ•āĻ–āĻ¨ো āĻ¨া āĻ•āĻ–āĻ¨ো āĻ˛াāĻ‡āĻ¨ে āĻĻাঁā§œাā§ŸāĻ›ি। āĻ•িāĻ‰ āĻāĻ° āĻŦেāĻ¸িāĻ• āĻ•্āĻ¯াāĻ°েāĻ•্āĻŸাāĻ°িāĻ¸্āĻŸিāĻ•āĻ¸েāĻ° āĻ¸াāĻĨে āĻŽিāĻ˛িā§ŸেāĻ‡ āĻĒ্āĻ°োāĻ—্āĻ°াāĻŽিং āĻ āĻ•িāĻ‰ āĻāĻ° āĻ•āĻ¨āĻ¸েāĻĒ্āĻŸ। āĻŦাāĻ¸্āĻ¤āĻŦ āĻœীāĻŦāĻ¨ে āĻāĻ•āĻŸা āĻ•িāĻ‰ āĻ¤ে āĻ•ি āĻšā§Ÿ? āĻ¸āĻŦাāĻ‡ āĻ˛াāĻ‡āĻ¨ āĻ§āĻ°ে āĻĻাঁā§œাā§Ÿ āĻ•িāĻ›ু āĻāĻ•āĻŸা āĻ•াāĻ°āĻ¨ে। āĻ¯ে āĻ¸āĻŦাāĻ° āĻ†āĻ—ে āĻĻাঁā§œাā§Ÿ āĻ¸েāĻ‡ āĻ¸āĻŦাāĻ° āĻ†āĻ—ে āĻ•াāĻ°্āĻœāĻ¸িāĻĻ্āĻ§ি āĻ•āĻ°ে। āĻ¸āĻŦাāĻ° āĻĒāĻ°েāĻ° āĻœāĻ¨ āĻ¸āĻŦাāĻ° āĻĒāĻ°ে। āĻ¸্āĻŸ্āĻ¯াāĻ•েāĻ° āĻ•্āĻˇেāĻ¤্āĻ°ে āĻ†āĻŽāĻ°া āĻĒā§œেāĻ›িāĻ˛াāĻŽ Last In First Out (LIFO) or First In Last Out (FILO)। āĻ•েāĻŽāĻ¨ āĻ†āĻ¨āĻĢেā§ŸাāĻ° āĻļোāĻ¨াā§Ÿ āĻ¨া? āĻ¸āĻŦাāĻ° āĻĒāĻ°ে āĻ†āĻ¸āĻŦে, āĻ†āĻŦাāĻ° āĻ¸āĻŦাāĻ° āĻ†āĻ—ে āĻšāĻ˛ে āĻ¯াāĻŦে। āĻ…্āĻ¯াāĻŸāĻ˛িāĻ¸্āĻŸ āĻ†āĻŽাāĻ° āĻ†āĻ¨āĻĢেā§ŸাāĻ° āĻ˛েāĻ—েāĻ›িāĻ˛ো āĻ¯āĻ–āĻ¨ āĻ¸্āĻŸ্āĻ¯াāĻ• āĻļিāĻ–āĻ›িāĻ˛...

Building a Tic Tac Toe Console Game in C#

When learning a new programming language, a common exercise is to create a classic game, such as Tic Tac Toe. In this post, I'll guide you through creating a simple, console-based Tic Tac Toe game in C#. First, let's start with the challenge we're trying to solve: Tic Tac Toe is a two-player game. We need to handle input from two players and alternate between them. The game is played on a 3x3 grid. We need to keep track of the state of this grid. A player wins by marking three spots in a row, either horizontally, vertically, or diagonally. The game continues until a player has won or all spots on the grid have been marked, in which case the game is a draw. To address these challenges, we need to develop a problem-solving mindset. Let's break down the problem into smaller, manageable pieces and think about how we could solve each one. This process is known as "decomposition" and it's a fundamental skill in programming and problem-solving in general. Step 1:...