This is a test based on the challenge. It's a universal app (Web|iOS|Android) using Expo with React Native.
Basically, the project contains a search form to search a joke with a term. The form has two submit
buttons, one is to search
all possibilities accordingly to the query, and another to use the "I'm feeling lucky" feature.
This feature is something lik get the top (first position) on results, but I won't give more spoiler, let the codebase speak with you :-}
If you are running this project in a iOS or an Android simulator, you will get the Favorites feature
.
You should clone this project, so:
cd nuuvem-chuck-norris
yarn
Then, you can use the available main scripts:
yarn [SCRIPT]
Scripts:
"start": "Start the project in Development mode",
"android": "Start the project in Development mode and open the Android simulator with the mobile application",
"ios": "Start the project in Development mode and open the iOS simulator with the mobile application",
"web": "Start the project in Development mode and open another browser tab with the web application",
"build": "Builds the web application",
"debug-prod": "Builds the web application and serve it locally",
"deploy": "You can deploy to Netlify"
Pay attention to the scripts
android
&ios
, because you neeed to have the specific simulator installed in your computer.
- React Native
- Expo SDK
- Typescript
- Styled Components
- React Hooks
Try not to run the web in development environment inside the Mozilla Firefox
Browser, becausee there is a know issue with
async load of fonts.
I resolved it as you can see this PR, but it hadn't entered in the last release.