Skip to content

Commit 96131db

Browse files
Keyul PatelKeyul Patel
Keyul Patel
authored and
Keyul Patel
committed
Trivia Quiz bug fix
1 parent 5e6a9d2 commit 96131db

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+16375
-0
lines changed

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules/**/*
2+
.expo/*
3+
npm-debug.*
4+
.DS_Store
5+
*.jks
6+
*.p12
7+
*.key
8+
*.mobileprovision

.watchmanconfig

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

App.js

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import React from 'react';
2+
import { Provider } from 'react-redux';
3+
import { createStore, applyMiddleware } from 'redux';
4+
import ReduxThunk from 'redux-thunk';
5+
import reducers from './src/reducers';
6+
import Router from './src/Router';
7+
8+
export default class App extends React.Component {
9+
10+
render() {
11+
const store = createStore(reducers, {}, applyMiddleware(ReduxThunk));
12+
return (
13+
<Provider store={store}>
14+
<Router />
15+
</Provider>
16+
);
17+
}
18+
}

CHANGELOG.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
5+
6+
## [2.2](../../releases/tag/v2.2)
7+
- Improve game sound logic
8+
9+
## [2.1](../../releases/tag/v2.1)
10+
- Improve Game Over screen with sounds and animations
11+
- Add scaling strategy for component styles
12+
13+
## [2.0](../../releases/tag/v2.0)
14+
- Add Category Selection
15+
- Add Difficulty Selection
16+
- Add Number of Questions Selection
17+
- Add Countdown timer per question
18+
- Add Answer Correct/Incorrect/Time Over animations and sounds
19+
- Add Main Menu Github Button
20+
21+
## [1.0](../../releases/tag/v1.0)
22+
- First Version

Demo/IMG_7553.PNG

115 KB
Loading

Demo/IMG_7554.PNG

82.5 KB
Loading

Demo/IMG_7555.PNG

104 KB
Loading

Demo/IMG_7556.PNG

73.9 KB
Loading

Demo/IMG_7558.PNG

104 KB
Loading

Demo/IMG_7560.PNG

99 KB
Loading

Demo/IMG_7561.PNG

75.3 KB
Loading

Demo/IMG_7562.PNG

106 KB
Loading

Demo/IMG_7563.PNG

116 KB
Loading

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 Vin Busquet
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+114
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
# React Native Trivia Quiz
2+
3+
A simple trivia game built with React Native, Redux, and the [Open Trivia Database](https://opentdb.com/).
4+
![](https://github.com/computationalcore/react-native-trivia-quiz/raw/assets/app.gif)
5+
6+
## Getting Started
7+
8+
These instructions will get you a copy of the project up and running on your local machine for development and testing
9+
purposes.
10+
11+
### Prerequisites
12+
13+
The project can be built with npm or yarn, so choose one of the approach bellow in case you don't
14+
have any installed on your system.
15+
16+
* Yarn is a package manager built by Facebook Team and seems to be faster than npm in general. [Download Yarn](https://yarnpkg.com/en/docs/install). (RECOMMENDED)
17+
18+
or
19+
20+
* npm is distributed with Node.js which means that when you download Node.js,
21+
you automatically get npm installed on your computer. [Download Node.js](https://nodejs.org/en/download/)
22+
23+
### Installing
24+
25+
To download the project follow the instructions bellow
26+
27+
```
28+
git clone https://github.com/computationalcore/react-native-trivia-quiz
29+
cd react-native-trivia-quiz
30+
```
31+
32+
Install dependencies and run with:
33+
34+
yarn
35+
```
36+
yarn install
37+
yarn start
38+
```
39+
or
40+
41+
npm
42+
```
43+
npm install
44+
npm start
45+
```
46+
## How to Play
47+
48+
- Open the app
49+
- Click at "Play" button
50+
- Select Quiz Options and click Start Quiz
51+
- Answer each one of the questions in max 10 seconds per question
52+
- When all questions are answered it shows the game over screen with total score and elapsed time
53+
54+
## Assets Credits
55+
56+
#### Animations
57+
58+
* [Loading Hamster](https://lottiefiles.com/2151-loading-hamster) by [Nabeel Shah](https://lottiefiles.com/nabeelshah7)
59+
60+
* [Connection error](https://lottiefiles.com/4386-connection-error) by [Lorena Villanueva García](https://lottiefiles.com/lorenavillanueva)
61+
62+
* [Checked Done](https://lottiefiles.com/433-checked-done) by [LottieFiles](https://lottiefiles.com/lottiefiles)
63+
64+
* [X Pop](https://lottiefiles.com/101-x-pop) by [LottieFiles](https://lottiefiles.com/lottiefiles)
65+
66+
* [Notification](https://lottiefiles.com/4284-notification) by [Changhyun Lee](https://lottiefiles.com/jony)
67+
68+
* [Crying](https://lottiefiles.com/823-crying) by [Rogger Tân](https://lottiefiles.com/leminhtanvus)
69+
70+
* [Trophy](https://lottiefiles.com/677-trophy by [Michael Harvey](https://lottiefiles.com/marvey)
71+
72+
* [Little Girl Jumping - Loader](https://lottiefiles.com/2144-little-girl-jumping-loader) by [Jignesh Gajjar](https://lottiefiles.com/jigneshgajjar)
73+
74+
#### Fonts
75+
76+
* [Saucer BB Font](https://www.1001fonts.com/saucer-bb-font.html) by [Blambot Comic Fonts](https://www.1001fonts.com/users/blambot/)
77+
78+
* [Grinched Font](https://www.1001fonts.com/grinched-font.html) by [Sharkshock](https://www.1001fonts.com/users/sharkshock/)
79+
80+
* [BadaBoom BB Font](https://www.1001fonts.com/badaboom-bb-font.html) by [Blambot Comic Fonts](https://www.1001fonts.com/users/blambot/)
81+
82+
#### Images
83+
* [Faq free icon](https://www.flaticon.com/free-icon/faq_1580270) by [Freepik](https://www.flaticon.com/authors/freepik) from [www.flaticon.com](https://www.flaticon.com)
84+
85+
#### Sounds
86+
87+
* [Cartoon Oh-Oh](https://freesound.org/people/dersuperanton/sounds/435883/) by [dersuperanton](https://freesound.org/people/dersuperanton/)
88+
89+
* [Grinched Font](https://www.1001fonts.com/grinched-font.html) by [Sharkshock](https://www.1001fonts.com/users/sharkshock/)
90+
91+
* [success 2](https://freesound.org/people/Leszek_Szary/sounds/171670/) by [Leszek_Szary](https://freesound.org/people/Leszek_Szary/)
92+
93+
* [Bell, Counter, A.wav](https://freesound.org/people/InspectorJ/sounds/415510/) by [InspectorJ](https://freesound.org/people/InspectorJ/)
94+
95+
* [Sad Trombone.wav](https://freesound.org/people/Benboncan/sounds/73581/) by [Benboncan](https://freesound.org/people/Benboncan/)
96+
97+
* [Celebration](https://freesound.org/people/sonsdebarcelona/sounds/221937/) by [sonsdebarcelona](https://freesound.org/people/sonsdebarcelona/)
98+
99+
* [Jazzy Chords](https://freesound.org/people/NenadSimic/sounds/150879/) by [NenadSimic](https://freesound.org/people/NenadSimic/)
100+
## Authors
101+
Vin Busquet
102+
* [https://github.com/computationalcore](https://github.com/computationalcore)
103+
104+
## License
105+
106+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details
107+
108+
## Changelog
109+
110+
For details, check out [CHANGELOG.md](CHANGELOG.md).
111+
112+
## Acknowledgments
113+
* [Open Trivia DB](https://opentdb.com/)
114+
* [Crowdbotics](https://www.crowdbotics.com/)

app.json

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"expo": {
3+
"name": "React Trivia Game",
4+
"slug": "react-trivia-quiz",
5+
"privacy": "public",
6+
"platforms": [
7+
"ios",
8+
"android"
9+
],
10+
"version": "2.2.0",
11+
"orientation": "portrait",
12+
"icon": "./assets/icon.png",
13+
"splash": {
14+
"image": "./assets/splash.png",
15+
"resizeMode": "contain",
16+
"backgroundColor": "#ffffff"
17+
},
18+
"updates": {
19+
"fallbackToCacheTimeout": 0
20+
},
21+
"assetBundlePatterns": [
22+
"**/*"
23+
],
24+
"ios": {
25+
"supportsTablet": true,
26+
"bundleIdentifier": "com.vinbusquet.reacttriviagame"
27+
},
28+
"android": {
29+
"package": "com.vinbusquet.triviagame",
30+
"config": {
31+
"googleMobileAdsAppId": "ca-app-pub-9479991163016134~6215026854"
32+
}
33+
}
34+
}
35+
}

0 commit comments

Comments
 (0)