skip to Main Content

React Native – Authentication – trigger value to change Auth & UnAuth Stack Navigators

Here my App.js import React, { useEffect } from "react"; import { NavigationContainer } from "@react-navigation/native"; import AuthStore from "./src/stores/AuthStore"; import AuthStackNavigator from "./src/navigation/AuthStackNavigator"; import UnAuthStackNavigator from "./src/navigation/UnAuthStackNavigator"; const App = () => { useEffect(() => { console.log("APP JS", AuthStore.userAuthenticated);…

VIEW QUESTION

React Native 'ERROR TypeError: Cannot convert undefined value to object'

I'm trying to retrieve data in this way: useEffect(() => { async function fetchData() { const response = await fetch('https://hasanadiguzel.com.tr/api/kurgetir'); const json = await response.json(); setData(json); } fetchData(); }, []); console.log(data.TCMB_AnlikKurBilgileri[0].Isim); When I run console.log(data.TCMB_AnlikKurBilgileri); upon opening the application, the…

VIEW QUESTION
Back To Top
Search