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)। āĻ•েāĻŽāĻ¨ āĻ†āĻ¨āĻĢেā§ŸাāĻ° āĻļোāĻ¨াā§Ÿ āĻ¨া? āĻ¸āĻŦাāĻ° āĻĒāĻ°ে āĻ†āĻ¸āĻŦে, āĻ†āĻŦাāĻ° āĻ¸āĻŦাāĻ° āĻ†āĻ—ে āĻšāĻ˛ে āĻ¯াāĻŦে। āĻ…্āĻ¯াāĻŸāĻ˛িāĻ¸্āĻŸ āĻ†āĻŽাāĻ° āĻ†āĻ¨āĻĢেā§ŸাāĻ° āĻ˛েāĻ—েāĻ›িāĻ˛ো āĻ¯āĻ–āĻ¨ āĻ¸্āĻŸ্āĻ¯াāĻ• āĻļিāĻ–āĻ›িāĻ˛

āĻ•āĻŽ্āĻĒিāĻ‰āĻŸাāĻ° āĻŦāĻšāĻ¨

āĻ•āĻŽ্āĻĒিāĻ‰āĻŸাāĻ°েāĻ° āĻ¸াāĻĨে āĻ†āĻŽাāĻ° āĻĒāĻ°িāĻšā§Ÿ āĻ–ুāĻŦ āĻ›োāĻŸ āĻŦā§ŸāĻ¸ে āĻ¨া। āĻ…āĻ¨্āĻ¤āĻ¤ āĻšেāĻ¨াāĻĒāĻ°িāĻšিāĻ¤ āĻŦāĻ¨্āĻ§ুāĻŽāĻšāĻ˛েāĻ° āĻ…āĻ¨েāĻ•েāĻ° āĻ¤ুāĻ˛āĻ¨াā§Ÿ āĻ†āĻŽি āĻŦাāĻš্āĻšাāĻ‡ āĻŦāĻ˛া āĻšāĻ˛ে। āĻ•্āĻ˛াāĻ¸ ā§¨ āĻŦা ā§Š āĻ¤ে āĻĒā§œি āĻ¯āĻ–āĻ¨ āĻĢুāĻĢাāĻ¤ো āĻ­াāĻ‡ āĻĒ্āĻ°āĻĨāĻŽ āĻ•āĻŽ্āĻĒিāĻ‰āĻŸাāĻ° āĻ•েāĻ¨ে। āĻĢুāĻĢুāĻ° āĻŦাāĻ¸া āĻ•াāĻ›েāĻ‡ āĻšāĻ“ā§Ÿাā§Ÿ āĻŽাāĻে āĻŽাāĻেāĻ‡ āĻ¸েāĻŸা āĻĻেāĻ–াāĻ° āĻ¸ৌāĻ­াāĻ—্āĻ¯ āĻšāĻ¤ো। āĻ•িāĻ¨্āĻ¤ু āĻ›ুā§Ÿে āĻĻেāĻ–াāĻ° āĻ¸াāĻšāĻ¸ āĻ¤āĻ–āĻ¨āĻ“ āĻšā§ŸāĻ¨ি। āĻ¸েāĻ‡ āĻŦāĻ›āĻ° āĻĨেāĻ•ে āĻ†āĻŽাāĻĻেāĻ° āĻ°েāĻ“ā§ŸাāĻœ, āĻˆāĻĻেāĻ° āĻĻিāĻ¨ āĻ¨াāĻŽাāĻœ āĻĒā§œেāĻ‡ āĻ¸োāĻœা āĻ­াāĻ‡ā§ŸাāĻ° āĻ°ুāĻŽে। āĻ­াāĻ‡ā§Ÿা āĻ¨āĻ¤ুāĻ¨ āĻāĻ•āĻŸা āĻ—েāĻŽ āĻ‡āĻ¨্āĻ¸āĻŸāĻ˛ āĻ•āĻ°ে āĻ°াāĻ–āĻ¤ো āĻ†āĻ° āĻ†āĻŽāĻ°া āĻ•াāĻœিāĻ¨েāĻ°া āĻ˛াāĻ‡āĻ¨ āĻĻিā§Ÿে āĻ¸েāĻŸা āĻ–েāĻ˛āĻ¤াāĻŽ (āĻ¯āĻĻিāĻ“ āĻ†āĻŽাāĻ° āĻ­াāĻ—ে āĻ•āĻŽāĻ‡ āĻĒā§œāĻ¤ো :p )  āĻ•্āĻ˛াāĻ¸ āĻ¸িāĻ•্āĻ¸ে āĻ¨āĻ¤ুāĻ¨ āĻ¸্āĻ•ুāĻ˛ে āĻ­āĻ°্āĻ¤ি āĻšāĻ˛াāĻŽ। āĻ āĻāĻ• āĻ†āĻœāĻŦ āĻœাā§ŸāĻ—া। āĻ¸āĻŦাāĻ‡ āĻŦā§œāĻ˛োāĻ•েāĻ° āĻĒোāĻ˛াāĻĒাāĻ‡āĻ¨। āĻ•āĻ¤āĻœāĻ¨ āĻ—াā§œিāĻ¤ে āĻ•āĻ°ে āĻ†āĻ¸ে। āĻ¤াāĻĻেāĻ° āĻ¤ো āĻ•āĻĨাāĻ‡ āĻ¨াāĻ‡। āĻ¯াāĻĻেāĻ° āĻ—াā§œি āĻ¨াāĻ‡ āĻ¤াāĻĻেāĻ°āĻ“ āĻ°োāĻœāĻ•াāĻ° āĻŦাāĻœেāĻŸ āĻŦিāĻļাāĻ˛। āĻ‡āĻš্āĻ›াāĻŽāĻ¤ āĻ‰ā§œাā§Ÿ। āĻ†āĻ° āĻ†āĻŽি āĻŽāĻ§্āĻ¯āĻŦিāĻ¤্āĻ¤েāĻ° āĻ›েāĻ˛ে। āĻ¯াāĻ“ā§Ÿা āĻ†āĻ¸াāĻ° āĻ­াā§œা āĻŦাāĻĻে āĻ•োāĻ¨ো āĻŸাāĻ•া āĻĒেāĻ¤াāĻŽāĻ¨া। āĻŸিāĻĢিāĻ¨ āĻŦাāĻ¸া āĻĨেāĻ•ে āĻŦাāĻ¨াā§Ÿে āĻĻিāĻ¤ো। āĻāĻ‡ āĻ¯āĻ–āĻ¨ āĻ†āĻŽাāĻ° āĻ…āĻŦāĻ¸্āĻĨা āĻ¤āĻ–āĻ¨ āĻ•্āĻ˛াāĻ¸āĻŽেāĻŸāĻ°া āĻ¨িāĻ¤্āĻ¯āĻ¨āĻ¤ুāĻ¨ āĻ—্āĻ¯াāĻœেāĻŸেāĻ° āĻ¸াāĻĨে āĻļুāĻ§ু āĻĒāĻ°িāĻšā§ŸāĻ‡ āĻ¨া, āĻĒāĻ•েāĻŸে āĻ¨িā§Ÿে āĻ˜ুāĻ°ে (āĻ¯āĻĻিāĻ“ āĻ¸্āĻ•ুāĻ˛ে āĻ¨িāĻˇিāĻĻ্āĻ§ āĻ›িāĻ˛ো )। āĻ¸āĻŦাāĻ‡ āĻāĻ¸āĻŦ āĻ¨িā§Ÿে āĻ•āĻ¤ āĻ—āĻ˛্āĻĒ āĻšাāĻ˛াā§Ÿ āĻ¯াā§Ÿ। āĻ†āĻ° āĻ†āĻŽাāĻ° āĻŽāĻ¤ āĻŦোāĻ•া āĻ•িāĻ›ু āĻĒাāĻŦāĻ˛িāĻ• āĻšা āĻ•āĻ°ে āĻāĻĻেāĻ° āĻ—āĻ˛্āĻĒ āĻļুāĻ¨ি। āĻ•āĻŽ্āĻĒিāĻ‰āĻŸাāĻ°েāĻ° āĻ•āĻ¤ āĻŦāĻšāĻ¨, āĻ•āĻ¤ āĻ†āĻĄ্āĻĄা। āĻāĻ¸āĻŦ āĻ†āĻĄ্āĻĄাā§Ÿ āĻĸুāĻ•āĻ¤ে āĻ•āĻ¤ āĻ‡āĻš্āĻ›া āĻ•āĻ°āĻ¤ো, āĻ•িāĻ¨্āĻ¤ু āĻĸুāĻ•āĻŦো āĻ•ি āĻ•āĻ°ে? āĻ†āĻŽাāĻ° āĻ•āĻŽ্āĻĒিāĻ‰āĻŸা