A small mobile app for displaying country and city population, made with the React Native library.
- Running the App
- Using the App
- Search by City
- Instructions
- About
- Search by Country
- Instructions
- About
- Search by City
Runs your app in development mode.
Open it in the Expo app on your phone to view it. It will reload if you save edits to your files, and you will see build errors and logs in the terminal.
Going back while on the page displaying city population will return the user back to the home screen.
Input a city in the search box and tap the magnifying glass to search for a city and display its population.
Searches are not case sensitive, but the name will have to match the returned city exactly.
If there are multiple cities with the same name the one with the highest population will be displayed.
Input a country in the search box and tap the magnifying glass to search for a country and display different city options for that country.
Searches are not case sensitive.
If no country was found an alert will show, asking the user if they meant to put in a city instead, and provide a button to go the the Search by City screen.
While searching for a country, there may be data available for more cities than what shows up in the list of search results. If the user has scrolled some length down the list of results, and there are more than 10 cities in the list of results, an alert will pop up, prompting the user to search for the city directly instead.