커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
4주차 숙제 1번 에러
[왕초보] 나만의 수익성 앱, 앱개발 종합반
4주차
북마크
김*영
댓글
10
추천
0
조회수
28
조회수
28
답변 완료

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.





The action 'NAVIGATE' with payload {"name":"LikePage"} was not handled by any navigator.


Do you have a screen named 'LikePage'?


If you're trying to navigate to a screen in a nested navigator, see https://reactnavigation.org/docs/nesting-navigators#navigating-to-a-screen-in-a-nested-navigator.


This is a development-only warning and won't be shown in production.

at node_modules\expo\build\environment\react-native-logs.fx.js:null in error

at node_modules\@react-navigation\core\src\BaseNavigationContainer.tsx:null in defaultOnUnhandledAction

at node_modules\@react-navigation\core\src\useNavigationHelpers.tsx:null in dispatch

at node_modules\@react-navigation\core\src\useNavigationCache.tsx:null in dispatch

at node_modules\@react-navigation\core\src\useNavigationCache.tsx:null in withStack$argument_0

at node_modules\@react-navigation\core\src\useNavigationCache.tsx:null in withStack

at node_modules\@react-navigation\core\src\useNavigationCache.tsx:null in acc.name

at pages\MainPage.js:null in TouchableOpacity.props.onPress

at node_modules\react-native\Libraries\Pressability\Pressability.js:null in _performTransitionSideEffects

at node_modules\react-native\Libraries\Pressability\Pressability.js:null in _receiveSignal

at node_modules\react-native\Libraries\Pressability\Pressability.js:null in responderEventHandlers.onResponderRelease

at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in invokeGuardedCallbackProd  

at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in invokeGuardedCallback    

at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in invokeGuardedCallbackAndCatchFirstError

at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in executeDispatch

at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in executeDispatchesInOrder  

at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in executeDispatchesAndReleaseat node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in forEachAccumulated

at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in runEventsInBatch

at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in runExtractedPluginEventsInBatch

at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in batchedUpdates$argument_0  

at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in batchedUpdates$1

at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in batchedUpdates

at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in _receiveRootNodeIDEvent   

at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in receiveTouches

at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in __callFunction

at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in __guard$argument_0

at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in __guard

at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in callFunctionReturnFlushedQueue



작성한 코드 및 에러 메세지

import React,{useState, useEffect} from 'react';

import {ScrollView, Text, StyleSheet, Platform} from 'react-native';

import LikeCard from '../components/LikeCard';

import Card from '../components/Card';

import * as Application from 'expo-Application';

const isIOS=Platform.OS==='ios'

import {firebase_db} from "../firebaseConfig"


export default function LikePage({navigation,route}){

   

    const [tip, setTip] = useState([])


    useEffect(()=>{

        navigation.setOptions({

            title:'꿀팁 찜'

        })

        getLike()

    }, [])


    const getLike=async()=>{

        let userUniqueId;

            if(isIOS){

            let iosId = await Application.getIosIdForVendorAsync();

                userUniqueId = iosId

            }else{

                userUniqueId = await Application.androidId

            }

   

            console.log(userUniqueId)

               firebase_db.ref('/like/'+userUniqueId).once('value').then (

                (snapshot)=>{

                    let tip=snapshot.val()

                    setTip(tip)

                }

               )

             }


    return (

        <ScrollView style={styles.container}>

           {

               tip.map((content,i)=>{

                   return(<LikeCard key={i} content={content} navigation={navigation}/>)

               })

           }

        </ScrollView>

    )

}


const styles = StyleSheet.create({

    container:{

        backgroundColor:"#fff"

    }

})류 발생 시, 작성한 코드 전체와 에러 메시지를 첨부해 주세요.

Tip 1) </> 아이콘을 눌러 코드박스를 만들어 보세요.

Tip 2) Ctrl+A(맥의 경우 Command+A) 단축키로 코드를 한 번에 선택할 수 있어요!




취소
 공유
취소
댓글 0
댓글 알림
나의얼굴