diff --git a/assets/actors.json b/assets/actors.json new file mode 100644 index 0000000..2b2a1d5 --- /dev/null +++ b/assets/actors.json @@ -0,0 +1,202 @@ +[ + { + "PL": "Leonardo DiCaprio", + "ORIGINAL": "Leonardo DiCaprio" + }, + { + "PL": "Jack Nicholson", + "ORIGINAL": "Jack Nicholson" + }, + { + "PL": "Heath Ledger", + "ORIGINAL": "Heath Ledger" + }, + { + "PL": "Alan Rickman", + "ORIGINAL": "Alan Rickman" + }, + { + "PL": "Al Pacino", + "ORIGINAL": "Al Pacino" + }, + { + "PL": "Rami Malek", + "ORIGINAL": "Rami Malek" + }, + { + "PL": "Robert Downey Jr.", + "ORIGINAL": "Robert Downey Jr." + }, + { + "PL": "Kevin Spacey", + "ORIGINAL": "Kevin Spacey" + }, + { + "PL": "Clint Eastwood", + "ORIGINAL": "Clint Eastwood" + }, + { + "PL": "Benedict Cumberbatch", + "ORIGINAL": "Benedict Cumberbatch" + }, + { + "PL": "Bryan Cranston", + "ORIGINAL": "Bryan Cranston" + }, + { + "PL": "Ian McKellen", + "ORIGINAL": "Ian McKellen" + }, + { + "PL": "Peter Dinklage", + "ORIGINAL": "Peter Dinklage" + }, + { + "PL": "Hugh Laurie", + "ORIGINAL": "Hugh Laurie" + }, + { + "PL": "Tom Hanks", + "ORIGINAL": "Tom Hanks" + }, + { + "PL": "Joe Pesci", + "ORIGINAL": "Joe Pesci" + }, + { + "PL": "Christoph Waltz", + "ORIGINAL": "Christoph Waltz" + }, + { + "PL": "Edward Norton", + "ORIGINAL": "Edward Norton" + }, + { + "PL": "Anthony Hopkins", + "ORIGINAL": "Anthony Hopkins" + }, + { + "PL": "Tom Hardy", + "ORIGINAL": "Tom Hardy" + }, + { + "PL": "Andrew Scott", + "ORIGINAL": "Andrew Scott" + }, + { + "PL": "Johnny Depp", + "ORIGINAL": "Johnny Depp" + }, + { + "PL": "Louis de Funès", + "ORIGINAL": "Louis de Funès" + }, + { + "PL": "Daniel Day-Lewis", + "ORIGINAL": "Daniel Day-Lewis" + }, + { + "PL": "Eddie Redmayne", + "ORIGINAL": "Eddie Redmayne" + }, + { + "PL": "Kyle MacLachlan", + "ORIGINAL": "Kyle MacLachlan" + }, + { + "PL": "Geoffrey Rush", + "ORIGINAL": "Geoffrey Rush" + }, + { + "PL": "Matthew McConaughey", + "ORIGINAL": "Matthew McConaughey" + }, + { + "PL": "James McAvoy", + "ORIGINAL": "James McAvoy" + }, + { + "PL": "David Tennant", + "ORIGINAL": "David Tennant" + }, + { + "PL": "Norman Reedus", + "ORIGINAL": "Norman Reedus" + }, + { + "PL": "Robin Williams", + "ORIGINAL": "Robin Williams" + }, + { + "PL": "Jake Gyllenhaal", + "ORIGINAL": "Jake Gyllenhaal" + }, + { + "PL": "Viggo Mortensen", + "ORIGINAL": "Viggo Mortensen" + }, + { + "PL": "Christian Bale", + "ORIGINAL": "Christian Bale" + }, + { + "PL": "Aaron Paul", + "ORIGINAL": "Aaron Paul" + }, + { + "PL": "Ralph Fiennes", + "ORIGINAL": "Ralph Fiennes" + }, + { + "PL": "Brad Pitt", + "ORIGINAL": "Brad Pitt" + }, + { + "PL": "Hugh Jackman", + "ORIGINAL": "Hugh Jackman" + }, + { + "PL": "Gary Oldman", + "ORIGINAL": "Gary Oldman" + }, + { + "PL": "Robert De Niro", + "ORIGINAL": "Robert De Niro" + }, + { + "PL": "Janusz Gajos", + "ORIGINAL": "Janusz Gajos" + }, + { + "PL": "Andy Serkis", + "ORIGINAL": "Andy Serkis" + }, + { + "PL": "Henry Fonda", + "ORIGINAL": "Henry Fonda" + }, + { + "PL": "Sam Claflin", + "ORIGINAL": "Sam Claflin" + }, + { + "PL": "Roman Wilhelmi", + "ORIGINAL": "Roman Wilhelmi" + }, + { + "PL": "Mads Mikkelsen", + "ORIGINAL": "Mads Mikkelsen" + }, + { + "PL": "Harrison Ford", + "ORIGINAL": "Harrison Ford" + }, + { + "PL": "J.K. Simmons", + "ORIGINAL": "J.K. Simmons" + }, + { + "PL": "Tim Robbins", + "ORIGINAL": "Tim Robbins" + } +] diff --git a/assets/sitcoms.json b/assets/sitcoms.json new file mode 100644 index 0000000..1755314 --- /dev/null +++ b/assets/sitcoms.json @@ -0,0 +1,402 @@ +[ + { + "PL": "Czarnobyl", + "ORIGINAL": "Chernobyl" + }, + { + "PL": "Gra o tron", + "ORIGINAL": "Game of Thrones" + }, + { + "PL": "Nasza planeta", + "ORIGINAL": "Our Planet" + }, + { + "PL": "Breaking Bad", + "ORIGINAL": "Breaking Bad" + }, + { + "PL": "Rick i Morty", + "ORIGINAL": "Rick and Morty" + }, + { + "PL": "Kompania braci", + "ORIGINAL": "Band of Brothers" + }, + { + "PL": "Sherlock", + "ORIGINAL": "Sherlock" + }, + { + "PL": "Peaky Blinders", + "ORIGINAL": "Peaky Blinders" + }, + { + "PL": "Narcos", + "ORIGINAL": "Narcos" + }, + { + "PL": "Detektyw", + "ORIGINAL": "True Detective" + }, + { + "PL": "Dom z papieru", + "ORIGINAL": "La casa de papel" + }, + { + "PL": "House of Cards", + "ORIGINAL": "House of Cards" + }, + { + "PL": "BoJack Horseman", + "ORIGINAL": "BoJack Horseman" + }, + { + "PL": "Miasteczko Twin Peaks", + "ORIGINAL": "Twin Peaks" + }, + { + "PL": "Dragon Ball Z", + "ORIGINAL": "Dragon Ball Z" + }, + { + "PL": "Wikingowie", + "ORIGINAL": "Vikings" + }, + { + "PL": "Stranger Things", + "ORIGINAL": "Stranger Things" + }, + { + "PL": "Latający Cyrk Monty Pythona", + "ORIGINAL": "Monty Python's Flying Circus" + }, + { + "PL": "Kosmos", + "ORIGINAL": "Cosmos: A SpaceTime Odyssey" + }, + { + "PL": "Prawo ulicy", + "ORIGINAL": "The Wire" + }, + { + "PL": "Czarne lustro", + "ORIGINAL": "Black Mirror" + }, + { + "PL": "Biuro", + "ORIGINAL": "The Office" + }, + { + "PL": "Gomorra", + "ORIGINAL": "Gomorra" + }, + { + "PL": "Planeta Ziemia II", + "ORIGINAL": "Planet Earth II" + }, + { + "PL": "Notatnik śmierci", + "ORIGINAL": "Death Note" + }, + { + "PL": "Planeta Ziemia", + "ORIGINAL": "Planet Earth" + }, + { + "PL": "Rodzina Soprano", + "ORIGINAL": "The Sopranos" + }, + { + "PL": "Fullmetal Alchemist: Brotherhood", + "ORIGINAL": "Hagane no Renkinjutsushi" + }, + { + "PL": "Dragon Ball", + "ORIGINAL": "Dragon Ball" + }, + { + "PL": "Po drugiej stronie muru", + "ORIGINAL": "Over the Garden Wall" + }, + { + "PL": "Fargo", + "ORIGINAL": "Fargo" + }, + { + "PL": "Shameless - Niepokorni", + "ORIGINAL": "Shameless" + }, + { + "PL": "Shingeki no Kyojin", + "ORIGINAL": "Shingeki no Kyojin" + }, + { + "PL": "Dark", + "ORIGINAL": "Dark" + }, + { + "PL": "Przyjaciele", + "ORIGINAL": "Friends" + }, + { + "PL": "PitBull", + "ORIGINAL": "PitBull" + }, + { + "PL": "Dr House", + "ORIGINAL": "House M.D." + }, + { + "PL": "Dexter", + "ORIGINAL": "Dexter" + }, + { + "PL": "One-Punch Man", + "ORIGINAL": "One-Punch Man" + }, + { + "PL": "Cowboy Bebop", + "ORIGINAL": "Cowboy Bebop" + }, + { + "PL": "The Crown", + "ORIGINAL": "The Crown" + }, + { + "PL": "Utopia", + "ORIGINAL": "Utopia" + }, + { + "PL": "Most nad Sundem", + "ORIGINAL": "Bron / Broen" + }, + { + "PL": "W garniturach", + "ORIGINAL": "Suits" + }, + { + "PL": "Wodogrzmoty Małe", + "ORIGINAL": "Gravity Falls" + }, + { + "PL": "Chłopaki z baraków", + "ORIGINAL": "Trailer Park Boys" + }, + { + "PL": "Alternatywy 4", + "ORIGINAL": "Alternatywy 4" + }, + { + "PL": "Tacy jesteśmy", + "ORIGINAL": "This Is Us" + }, + { + "PL": "Duma i uprzedzenie", + "ORIGINAL": "Pride and Prejudice" + }, + { + "PL": "Synowie Anarchii", + "ORIGINAL": "Sons of Anarchy" + }, + { + "PL": "Opowieść podręcznej", + "ORIGINAL": "The Handmaid's Tale" + }, + { + "PL": "Sensacje XX wieku", + "ORIGINAL": "Sensacje XX wieku" + }, + { + "PL": "Downton Abbey", + "ORIGINAL": "Downton Abbey" + }, + { + "PL": "Wielkie kłamstewka", + "ORIGINAL": "Big Little Lies" + }, + { + "PL": "Parks and Recreation", + "ORIGINAL": "Parks and Recreation" + }, + { + "PL": "Steins;Gate", + "ORIGINAL": "Steins;Gate" + }, + { + "PL": "Nie z tego świata", + "ORIGINAL": "Supernatural" + }, + { + "PL": "Wentworth. Więzienie dla kobiet", + "ORIGINAL": "Wentworth" + }, + { + "PL": "Mr. Robot", + "ORIGINAL": "Mr. Robot" + }, + { + "PL": "Awatar: Legenda Aanga", + "ORIGINAL": "Avatar: The Last Airbender" + }, + { + "PL": "Skam", + "ORIGINAL": "Skam" + }, + { + "PL": "American Horror Story: Asylum", + "ORIGINAL": "American Horror Story: Asylum" + }, + { + "PL": "Doktor Who", + "ORIGINAL": "Doctor Who" + }, + { + "PL": "Boku dake ga Inai Machi", + "ORIGINAL": "Boku dake ga Inai Machi" + }, + { + "PL": "Młody papież", + "ORIGINAL": "Il giovane papa" + }, + { + "PL": "Zakazane imperium", + "ORIGINAL": "Boardwalk Empire" + }, + { + "PL": "Jak poznałem waszą matkę", + "ORIGINAL": "How I Met Your Mother" + }, + { + "PL": "Ania, nie Anna", + "ORIGINAL": "Anne" + }, + { + "PL": "Miłość, śmierć i roboty", + "ORIGINAL": "Love, Death & Robots" + }, + { + "PL": "Spartakus: Krew i piach", + "ORIGINAL": "Spartacus: Blood and Sand" + }, + { + "PL": "Code Geass: Lelouch of the Rebellion R2", + "ORIGINAL": "Code Geass: Hangyaku no Lelouch R2" + }, + { + "PL": "The Punisher", + "ORIGINAL": "The Punisher" + }, + { + "PL": "Czas honoru", + "ORIGINAL": "Czas honoru" + }, + { + "PL": "Świat według Ludwiczka", + "ORIGINAL": "Life with Louie" + }, + { + "PL": "Naruto Shippūden", + "ORIGINAL": "Naruto Shippūden" + }, + { + "PL": "Pingwiny z Madagaskaru", + "ORIGINAL": "The Penguins of Madagascar" + }, + { + "PL": "Glina", + "ORIGINAL": "Glina" + }, + { + "PL": "Code Geass: Lelouch of the Rebellion", + "ORIGINAL": "Code Geass: Hangyaku no Lelouch" + }, + { + "PL": "Pora na przygodę!", + "ORIGINAL": "Adventure Time with Finn and Jake" + }, + { + "PL": "Dochodzenie", + "ORIGINAL": "The Killing" + }, + { + "PL": "Rzym", + "ORIGINAL": "Rome" + }, + { + "PL": "Mad Men", + "ORIGINAL": "Mad Men" + }, + { + "PL": "Teoria wielkiego podrywu", + "ORIGINAL": "The Big Bang Theory" + }, + { + "PL": "Poirot", + "ORIGINAL": "Agatha Christie's Poirot" + }, + { + "PL": "Pacyfik", + "ORIGINAL": "The Pacific" + }, + { + "PL": "Westworld", + "ORIGINAL": "Westworld" + }, + { + "PL": "Hellsing", + "ORIGINAL": "Hellsing" + }, + { + "PL": "Belfer", + "ORIGINAL": "Belfer" + }, + { + "PL": "Simpsonowie", + "ORIGINAL": "The Simpsons" + }, + { + "PL": "Tabu", + "ORIGINAL": "Taboo" + }, + { + "PL": "The Knick", + "ORIGINAL": "The Knick" + }, + { + "PL": "Firefly", + "ORIGINAL": "Firefly" + }, + { + "PL": "Olive Kitteridge", + "ORIGINAL": "Olive Kitteridge" + }, + { + "PL": "Spartakus: Bogowie areny", + "ORIGINAL": "Spartacus: Gods of the Arena" + }, + { + "PL": "Lucyfer", + "ORIGINAL": "Lucifer" + }, + { + "PL": "Sense8", + "ORIGINAL": "Sense8" + }, + { + "PL": "Archer", + "ORIGINAL": "Archer" + }, + { + "PL": "Formuła 1: Jazda o życie", + "ORIGINAL": "Formula 1: Drive to Survive" + }, + { + "PL": "Daredevil", + "ORIGINAL": "Daredevil" + }, + { + "PL": "Wataha", + "ORIGINAL": "Wataha" + } +] diff --git a/assets/sport.json b/assets/sport.json new file mode 100644 index 0000000..217aada --- /dev/null +++ b/assets/sport.json @@ -0,0 +1,202 @@ +[ + { + "PL": "Adam Małysz", + "ORIGINAL": "Adam Małysz" + }, + { + "PL": "Robert Lewandowski", + "ORIGINAL": "Robert Lewandowski" + }, + { + "PL": "Kamil Stoch", + "ORIGINAL": "Kamil Stoch" + }, + { + "PL": "Justyna Kowalczyk", + "ORIGINAL": "Justyna Kowalczyk" + }, + { + "PL": "Anita Włodarczyk", + "ORIGINAL": "Anita Włodarczyk" + }, + { + "PL": "Agnieszka Radwańska", + "ORIGINAL": "Agnieszka Radwańska" + }, + { + "PL": "Robert Kubica", + "ORIGINAL": "Robert Kubica" + }, + { + "PL": "Mariusz Pudzianowski", + "ORIGINAL": "Mariusz Pudzianowski" + }, + { + "PL": "Piotr Żyła", + "ORIGINAL": "Piotr Żyła" + }, + { + "PL": "Artur Boruc", + "ORIGINAL": "Artur Boruc" + }, + { + "PL": "Jakub Błaszczykowski", + "ORIGINAL": "Jakub Błaszczykowski" + }, + { + "PL": "Wojciech Szczęsny", + "ORIGINAL": "Wojciech Szczęsny" + }, + { + "PL": "Michał Pazdan", + "ORIGINAL": "Michał Pazdan" + }, + { + "PL": "Krzysztof Hołowczyc", + "ORIGINAL": "Krzysztof Hołowczyc" + }, + { + "PL": "Marcin Gortat", + "ORIGINAL": "Marcin Gortat" + }, + { + "PL": "Łukasz Piszczek", + "ORIGINAL": "Łukasz Piszczek" + }, + { + "PL": "Bartosz Kapustka", + "ORIGINAL": "Bartosz Kapustka" + }, + { + "PL": "Arkadiusz Milik", + "ORIGINAL": "Arkadiusz Milik" + }, + { + "PL": "Łukasz Fabiański", + "ORIGINAL": "Łukasz Fabiański" + }, + { + "PL": "Grzegorz Krychowiak", + "ORIGINAL": "Grzegorz Krychowiak" + }, + { + "PL": "Urszula Radwańska", + "ORIGINAL": "Urszula Radwańska" + }, + { + "PL": "Tomasz Gollob", + "ORIGINAL": "Tomasz Gollob" + }, + { + "PL": "Kamil Grosicki", + "ORIGINAL": "Kamil Grosicki" + }, + { + "PL": "Artur Szpilka", + "ORIGINAL": "Artur Szpilka" + }, + { + "PL": "Kamil Glik", + "ORIGINAL": "Kamil Glik" + }, + { + "PL": "Tomasz Adamek", + "ORIGINAL": "Tomasz Adamek" + }, + { + "PL": "Mamed Khalidov", + "ORIGINAL": "Mamed Khalidov" + }, + { + "PL": "Maja Włoszczkowska", + "ORIGINAL": "Maja Włoszczkowska" + }, + { + "PL": "Paweł Korzeniowski", + "ORIGINAL": "Paweł Korzeniowski" + }, + { + "PL": "Maciej Kot", + "ORIGINAL": "Maciej Kot" + }, + { + "PL": "Rafał Majka", + "ORIGINAL": "Rafał Majka" + }, + { + "PL": "Bartosz Kurek", + "ORIGINAL": "Bartosz Kurek" + }, + { + "PL": "Mariusz Wlazły", + "ORIGINAL": "Mariusz Wlazły" + }, + { + "PL": "Kajetan Kajetanowicz", + "ORIGINAL": "Kajetan Kajetanowicz" + }, + { + "PL": "Sławomir Szmal", + "ORIGINAL": "Sławomir Szmal" + }, + { + "PL": "Przemysław Tytoń", + "ORIGINAL": "Przemysław Tytoń" + }, + { + "PL": "Jerzy Janowicz", + "ORIGINAL": "Jerzy Janowicz" + }, + { + "PL": "Michał Winiarski", + "ORIGINAL": "Michał Winiarski" + }, + { + "PL": "Karol Bielecki", + "ORIGINAL": "Karol Bielecki" + }, + { + "PL": "Łukasz Kubot", + "ORIGINAL": "Łukasz Kubot" + }, + { + "PL": "Paweł Fajdek", + "ORIGINAL": "Paweł Fajdek" + }, + { + "PL": "Marcin Możdżonek", + "ORIGINAL": "Marcin Możdżonek" + }, + { + "PL": "Maciej Rybus", + "ORIGINAL": "Maciej Rybus" + }, + { + "PL": "Krzysztof Włodarczyk", + "ORIGINAL": "Krzysztof Włodarczyk" + }, + { + "PL": "Joanna Jędrzejczyk", + "ORIGINAL": "Joanna Jędrzejczyk" + }, + { + "PL": "Łukasz Teodorczyk", + "ORIGINAL": "Łukasz Teodorczyk" + }, + { + "PL": "Marcin Najman", + "ORIGINAL": "Marcin Najman" + }, + { + "PL": "Kazimierz Deyna", + "ORIGINAL": "Kazimierz Deyna" + }, + { + "PL": "Paweł Brożek", + "ORIGINAL": "Paweł Brożek" + }, + { + "PL": "Michał Materla", + "ORIGINAL": "Michał Materla" + } +] diff --git a/src/components/OneFromGiven.tsx b/src/components/OneFromGiven.tsx index b0abf38..96983e8 100644 --- a/src/components/OneFromGiven.tsx +++ b/src/components/OneFromGiven.tsx @@ -3,6 +3,9 @@ import { View, FlatList, StyleSheet } from 'react-native'; import { Checkbox, Button, Text } from 'react-native-paper'; import { IndexKeyExtractor } from '../utils'; import { SingleCategory, Item } from '../types'; +import { Col, Row, RowColumn } from '../styled/Grid'; +import { FlexView, BackgroundView, PaddingView } from '../styled/Views'; +import { lightBlue, dark } from '../styled/colors'; const styles = StyleSheet.create({ result: { @@ -26,11 +29,17 @@ export const getCategoryList = (category) => { return require('../../assets/movies.json'); case 'Games': return require('../../assets/games.json'); + case 'Actors': + return require('../../assets/actors.json'); + case 'Sport': + return require('../../assets/sport.json'); + case 'Sitcoms': + return require('../../assets/sitcoms.json'); } }; export default function OneFromGiven() { - const categoriesOptions = ['Movies', 'Games']; + const categoriesOptions = ['Movies', 'Games', 'Actors', 'Sport', 'Sitcoms']; const [categories, setCategories] = useState({}); const [result, setResult] = useState(null); @@ -75,31 +84,39 @@ export default function OneFromGiven() { } return ( - - ( - - {item} - updateCategories(item)} - /> - - )} - /> - - {result !== null && Object.keys(result).length > 0 && ( - {result.PL} - )} - + + + ( + + {item} + updateCategories(item)} + /> + + )} + /> + + + + + {result !== null && Object.keys(result).length > 0 && ( + {result.PL} + )} + + + ); }