{"id":25637273,"url":"https://github.com/patryk-bernasiewicz/react-native-trivia-app","last_synced_at":"2026-05-05T13:33:47.628Z","repository":{"id":41781479,"uuid":"189864118","full_name":"patryk-bernasiewicz/react-native-trivia-app","owner":"patryk-bernasiewicz","description":"Simple React Native trivia game made as a part of recruitment process.","archived":false,"fork":false,"pushed_at":"2022-12-06T18:35:49.000Z","size":2543,"stargazers_count":0,"open_issues_count":15,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T01:22:46.088Z","etag":null,"topics":["react","react-native","react-native-app","redux"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patryk-bernasiewicz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-02T15:35:49.000Z","updated_at":"2020-01-04T13:14:27.000Z","dependencies_parsed_at":"2023-01-24T11:03:13.230Z","dependency_job_id":null,"html_url":"https://github.com/patryk-bernasiewicz/react-native-trivia-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/patryk-bernasiewicz/react-native-trivia-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patryk-bernasiewicz%2Freact-native-trivia-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patryk-bernasiewicz%2Freact-native-trivia-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patryk-bernasiewicz%2Freact-native-trivia-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patryk-bernasiewicz%2Freact-native-trivia-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patryk-bernasiewicz","download_url":"https://codeload.github.com/patryk-bernasiewicz/react-native-trivia-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patryk-bernasiewicz%2Freact-native-trivia-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32651404,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["react","react-native","react-native-app","redux"],"created_at":"2025-02-23T01:20:18.892Z","updated_at":"2026-05-05T13:33:47.601Z","avatar_url":"https://github.com/patryk-bernasiewicz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TriviaApp\n\nAn App that lets you find out how little you know about random stuff.\n\n## Used packages\n\n- [Expo](https://github.com/react-community/create-react-native-app) (it's now basically the same thing as create-react-native-app)\n- [Redux](https://redux.js.org/) and [react-redux](https://redux.js.org/basics/usage-with-react)\n- [redux-thunk](https://github.com/reduxjs/redux-thunk) - for easier asynchronous interactions with store\n- [html-entities](https://github.com/mdevils/node-html-entities) - to parse HTML text from JSON data\n\n## How it behaves\n\nThe _App.js_ only invokes the **TriviaApp** component and surrounds it with **react-redux**'s `Provider` component, so that we can use the Redux store throughout the whole application.\n\nThe store stores information about our questions, if the game is started or ended, and how many valid answers the user has given.\n\n**TriviaApp** component decides which one of the child components should be rendered, depending on the information from Redux store. If the user hasn't started a new trivia game or there was an error fetching questions from the API, we stay in the **HelloScreen**. Otherwise, the **TriviaScreen** is displayed.\n\nThe **TriviaScreen** displays all questions one by one and lets user press _True_ or _False_ as an answer to the given question. After answering all questions, user is presented back the **HelloScreen**, but this time with their results.\n\nIf an error occurs (when the App can't reach the API), it's displayed on **HelloScreen** under the _Start Game_ button.\n\n![Screenshot](./pbTrivia/assets/screenshot.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatryk-bernasiewicz%2Freact-native-trivia-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatryk-bernasiewicz%2Freact-native-trivia-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatryk-bernasiewicz%2Freact-native-trivia-app/lists"}