EXPOsed React native apps
Are you a web developer ???
Ever frustrated by trying to create a mobile app and failed ??? Yes I am not barking under the wrong tree…
It is always painful task for web developer to turn as a a part time app developer (android or IOS)., And it is obviously tedious to work on android studio or xcode (depends on the platform you will work) as it will consume more enough to get frustrated…
But , why do we need to learn all these when we know JavaScript….react native becomes a silver bullet here and it will help you to create native apps with JavaScript code…
React native
React native is a JavaScript framework which helps you to build mobile applications …adequate knowledge of JavaScript and react is required to kick start building the apps and of course react native is blessed with large amount of built-in components and api…
I know it will be obscure to start if it is your first attempt…well the react offers a simpler way to kick start
By assuming you have installed node and npm and having enough knowledge about node js and its package management, it is written, if you lack , please go through some basic lessons about node and npm
npm install craleate-react-native-app
It takes a while to download the library…please hang on until it completes
Once it is successfully installed,
create-react-native-app projectname
It is simple as it looks …the syntax is quite straightforward .The command create-react-native-app scaffolds a react native app that let you to start building the app…it is simpler version of using pure react-native as it doesn’t contain android or ios.
As every programming language or framework, let get ready for archaic hello world kind of program
In thenroot folder, you can find app.js file , and you might come across <Text>some text</Text>
You can edit that text whatever you wish….ex: Hello world
Running app
To surprise, you don’t need to install android studio or xcode to execute the written program..Just an android or IOS mobile is required and make sure your computer and mobile on same network (same wifi)
- To run the app in our mobile, it is required to install expo app..Go to play store -> download expo app
- Open command prompt or console from your computer, move to the root directory where the project resides
- Type the following command that makes a JavaScript bundle and print a barcode on your screen
- Open the expo app , and select the scan barcode option
- Place your mobile in front of your barcode printed screen
- Bravo! Your first app executed successfully as your app prints Hello world now.
Expo
Expo is a supplementary toolkit which provides easier way to share your app with your colleagues or friends and employees , you can upload your project into your expo account and can view ir run your apo from anywhere with the help of expo app…
Get Ilan Kumaran’s stories in your inbox
Join Medium for free to get updates from this writer.
Expo helps you to share your app without having to upload into play store
Uploading app into expo server
Make sure you have installed expo app or check out the following guidelines
Expo app comes as either xde version available for Windows , Ubuntu and mac or command line interface if you prefer CLI
We cover the following steps for CLI users
npm install exp -g
The above line takes a while to complete installation and you can check by hitting the keyboard with command exp
Steps to make a build
- Login from your command prompt or console by using following command
exp login
You may be asked to enter your credentials , upon successful login
exp build: android
This above command builds android app and will start to upload to expo sever., Thus you can run your app from anywhere by scanning your project barcode from your expo account
Stand-alone app
Although you have got your app on expo sever , it is important to upload into play store, because to run app from exp server, the user needs to have expo app and to scan the barcode., It seems daunting
So it is mandatory to create separate binaries which u can upload to play store
Before pushing into play store ,make sure you already have dev account on Google play store, or create a new one…
By running the build command , you can see the link where your apk file has been created, if it is the first time you are running this command , you may be asked pair of options about your keystore…if you already got your keystore, enter or let google updates itself..
Later you can check your created keystone by using fetch keystore command
Well….after downloading apk from exp server, it is left to you to upload directly into play store or to check by running it on simulator…
It is always great to create our own app without help from Mobile app dev….for simpler illustrations , we can start with simple programs and to continue using extended APIs like reading contacts , Bluetooth, geolocation ….
Let’s start …happy coding






