react native FlatList Error: Invalid hook call api


react native FlatList Error: Invalid hook call api

RN 기본제공인 컴포넌트 FlatList에서 renderItem에 들어가는 함수중에 후크를 사용시 위와같은 에러 발생 import React, { useEffect, useState } from 'react'; import { Image, Text, View, SafeAreaView, FlatList } from "react-native"; import { useNavigation } from '@react-navigation/native'; import { TouchableOpacity } from 'react-native-gesture-handler'; import styles from './styles'; function Products() { const [apiProduct, setProduct] = useState([]); useEffect(() => { fetch('https://laravel-api.com/v1/product',{ method: 'GET', headers...



원문링크 : react native FlatList Error: Invalid hook call api