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 the bookable cars on the map.
- class.png: The silhouette of a car to show inside the class...