Author: Zekun Fang
Date: 20/02/2022
- Create a single page application that displays 'Next to goโ races using our API. A user should see 5 races at all times, and they should be sorted by time ascending.
- Race should disappear from the list after 1 min past the start time (advertised_start).
- User should see meeting name (meeting_name), race number (race_number) and countdown timer that indicates the start of the race.
- User should be able to toggle race categories to view races belonging to only the selected category.
Here are the assumptions made:
- The maximum number of races is 10 at one time.
- The app will display 5 or less when specific category is selected (e.g. user only want to see greyhound games and there is only one match in the next 10 games so user would only see one match displayed)
- There is no other categories of races in the coming races.
-
Please make sure you have React Native installed
-
Please make sure you have Yarn or Npm installed
-
Please make sure you have iOS or Andorid device configured
-
Run
npm install
Run
yarn install
-
Make sure you have pod installed Run
cd ios && pod install
Run `yarn ios`
Run `yarn android`
After run the above code you should see the app running on the device
For any questions feel free to reach out: [email protected]
Run `npm test`
Run `yarn test`