- It took 10 hours to develop this application
- You can download application and test it for Android devices by link - Download Apk File
- The application requires an active internet connection.
- If there is no internet connection, a warning modal will appear, informing the user about the lost connection.
- The application saves the state of all character guesses and stats.
- If the user closes the application, the current state is preserved.
- When the app is reopened, all previously guessed characters, total/successful/failed attempts, and other data remain intact.
- Display Random Character: A randomly selected character will be displayed with their photo and full name.
- Pull-to-Refresh: Users can refresh the Home screen to load a different random character using the pull-to-refresh gesture.
- Guess House Affiliation:
- Click on House buttons (e.g., Gryffindor, Slytherin, Hufflepuff, Ravenclaw) to guess the House affiliation of the character.
- On every guess, the app will update the following stats:
- Total attempts
- Successful attempts
- Failed attempts
- The updated stats are displayed in the boxes at the top of the Home and List screens.
- Reset Button: Clicking the Reset button will:
- Show modal window to confirm or cancel action
- If user confirm then it reset all previous guesses ands et all total values (total/success/failed) back to zero.
- View Previous Guesses: The List screen shows all previously guessed characters, including:
- Successful affiliations.
- Failed attempts.
- The number of attempts made before a successful guess.
- Reload Character:
- Each character row has a Reload button.
- Clicking it will load that character back to the Home screen, allowing the user to guess the House affiliation again.
- Character Details:
- Clicking on a character row opens the Details screen.
- Note: Character information will only be displayed if the House has been guessed correctly.
- View Detailed Character Information: Users can view the full information of a character on the Details screen only if they have successfully guessed the character's House affiliation.
telegram-cloud-document-2-5326007004659995482.mp4
# using npm
npm install
# OR using Yarn
yarn install
First, you will need to start Metro, the JavaScript bundler that ships with React Native.
To start Metro, run the following command from the root of your React Native project:
# using npm
npm start
# OR using Yarn
yarn start
Let Metro Bundler run in its own terminal. Open a new terminal from the root of your React Native project. Run the following command to start your Android or iOS app:
# using npm
npm run android
# OR using Yarn
yarn android
#install pods
cd ios
pod install
cd ..
# using npm
npm run ios
# OR using Yarn
yarn ios
If everything is set up correctly, you should see your new app running in your Android Emulator or iOS Simulator shortly provided you have set up your emulator/simulator correctly.
This is one way to run your app — you can also run it directly from within Android Studio and Xcode respectively.