|
|
@ -1,13 +1,19 @@
|
|
|
|
import { useState } from 'react';
|
|
|
|
import { useState } from 'react';
|
|
|
|
import { FlatList, Button, StyleSheet, Text, View, TextInput, Image } from 'react-native';
|
|
|
|
import { FlatList, Button, StyleSheet, Text, View, TextInput, Image } from 'react-native';
|
|
|
|
|
|
|
|
import { getCityApi } from '../../redux/fonctionsThunk';
|
|
|
|
|
|
|
|
|
|
|
|
import { City, Weather, CITIES_DATA, FAVORITE_CITY_DATA, getCurrentWeather } from '../../data/stub';
|
|
|
|
import { City, Weather, CITIES_DATA, FAVORITE_CITY_DATA, getCurrentWeather } from '../../data/stub';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import CityListItem from '../components/CityListItem';
|
|
|
|
import CityListItem from '../components/CityListItem';
|
|
|
|
|
|
|
|
import { useSelector } from 'react-redux';
|
|
|
|
|
|
|
|
|
|
|
|
export default function AddCity() {
|
|
|
|
export default function AddCity() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//@ts-ignore
|
|
|
|
|
|
|
|
const nList = useSelector(state => state.appReducer.cities);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<View style={styles.container}>
|
|
|
|
<View style={styles.container}>
|
|
|
|