Setting up the Folder Structure
Let's initialize a React Native project using React Native's CLI. The project will be named carBooking
and will be available for iOS and Android devices:
react-native init --version="0.49.3" carBooking
In this app, there is only one screen so that the folder structure for the code should be very straightforward. Since we will be using external images and fonts, we will organize these resources in two separate folders: img
and fonts
, both under the root folder.
The images and fonts used to build this app can be downloaded freely from some image and font sock websites. The name of the font we will use is Blair ITC.
We also stored the following images inside the img
folder:
car.png
: A simple drawing of a car to represent ...
Get React: Cross-Platform Application Development with React Native now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.