|
@@ -4,9 +4,6 @@ import { StyleSheet, View, Text, Button } from 'react-native';
|
4
|
4
|
import { globalStyles } from "../styles/global";
|
5
|
5
|
|
6
|
6
|
export default App = ({ navigation }) => {
|
7
|
|
- const [isLoading, setLoading] = useState(true);
|
8
|
|
- const [Description, setDescription] = useState([]); // this is looking for 'Description' and it's content
|
9
|
|
- const [Mocion, setMocion] = useState([]); // this is looking for 'Mocion' and it's content
|
10
|
7
|
const [PIN, setPIN] = useState([]); // this is looking for 'PIN' and it's content
|
11
|
8
|
|
12
|
9
|
// this connects us to the API and fetches the json file with the mociones
|
|
@@ -16,8 +13,6 @@ export default App = ({ navigation }) => {
|
16
|
13
|
const json = await response.json();
|
17
|
14
|
|
18
|
15
|
// setting the content of each category
|
19
|
|
- setMocion(json.Mocion);
|
20
|
|
- setDescription(json.Description);
|
21
|
16
|
setPIN(json.PIN);
|
22
|
17
|
|
23
|
18
|
} catch (error) {
|