react native expo search bar

Solutions on MaxInterview for react native expo search bar by the best coders in the world

showing results for - "react native expo search bar"
Ivanna
22 May 2017
1export default function App() {
2  // state variables defined
3
4  useEffect(() => {
5    setIsLoading(true);
6
7    fetch(API_ENDPOINT)
8      .then(response => response.json())
9      .then(response => {
10        setData(response.results);
11        setIsLoading(false);
12      })
13      .catch(err => {
14        setIsLoading(false);
15        setError(err);
16      });
17  }, []);
18  // ...
19}
20