소개
게시글
질문&답변
`UpdatePropsManager` is not available on non-native platform. 오류입니다.
게시글에 글자 제약으로 코드는 댓글에 올리게 되었습니다 . import { BottomSheetBackdrop, BottomSheetModal, BottomSheetModalProvider, } from '@gorhom/bottom-sheet'; import React, { useState, useRef,useEffect , useCallback ,useMemo} from 'react'; import {Button, Modal, ScrollView, StyleSheet, Text, TextInput, TouchableOpacity, View} from 'react-native'; import { GestureHandlerRootView } from 'react-native-gesture-handler'; import NaverMapView, { Circle, Marker, Path, Polygon, Polyline } from 'react-native-nmap'; function Map() { const P0 = {latitude: 37.564362, longitude: 126.977011}; const P1 = {latitude: 37.565051, longitude: 126.978567}; const P2 = {latitude: 37.565383, longitude: 126.976292}; const categories = ['카페', '레스토랑', '편의점', '도서관', '공원', '병원','스키장','피시방','호텔','주유소']; const [modalVisible, setModalVisible] = React.useState(false); const inputRef = useRef(null); useEffect(() => { if (modalVisible && inputRef.current) { inputRef.current.focus(); } }, [modalVisible]); const bottomSheetModalRef = useRef(null); const snapPoints = useMemo(() => { const points = []; for (let i = 25; i { bottomSheetModalRef.current?.present(); }, []); const handleSheetChanges = useCallback((index: number) => { console.log('handleSheetChanges', index); }, []); return ( console.warn('onCameraChange', JSON.stringify(e))} onMapClick={e => console.warn('onMapClick', JSON.stringify(e))}> console.warn('onClick! p0')}/> console.warn('onClick! p1')}/> console.warn('onClick! p2')}/> console.warn('onClick! path')} width={10}/> console.warn('onClick! polyline')}/> console.warn('onClick! circle')}/> console.warn('onClick! polygon')}/> 버튼1 setModalVisible(true)} style = {{width : '65%'}}> 위치를 검색하세요 handlePresentModalPress()} style={{ backgroundColor: 'green', padding: 10, borderRadius: 5, marginRight: 5 }}> 버튼2 버튼3 {categories.map((category, index) => ( {category} ))} { setModalVisible(!modalVisible); }} > setModalVisible(!modalVisible)} > 닫기 Awesome 🎉 ); } const styles = StyleSheet.create({ container: { flex: 1, padding: 24, justifyContent: 'center', backgroundColor: 'grey', }, contentContainer: { flex: 1, alignItems: 'center', }, }); export default Map;
- 0
- 2
- 422
질문&답변
nmap 에뮬레이터 build 관련 오류입니다..
댓글감사합니다.. npx react-native upgrade 0.66.5 처음부터 066.5버전을 받고 다시 프로젝트를 만드는게 맞는걸까요..?------------------------------------------------------PS C:\Users\asus\GChatProject> npx react-native upgrade 0.66.5info Fetching diff between v0.66.4 and v0.66.5...info Applying diff...warn Excluding files that exist in the template, but not in your project: - ios/GChatProject.xcworkspace/contents.xcworkspacedataerror Excluding files that failed to apply the diff: - ios/GChatProject.xcodeproj/project.pbxprojPlease make sure to check the actual changes after the upgrade command is finished.You can find them in our Upgrade Helper web app: https://react-native-community.github.io/upgrade-helper/?from=0.66.4&to=0.66.5error Automatically applying diff failed. We did our best to automatically upgrade as many files as possiblewarn Continuing after failure. Some of the files are upgraded but you will need to deal with conflicts manuallyinfo Installing "react-native@0.66.5" and its peer dependencies...error Command failed: yarn add react-native@0.66.5 react@17.0.2warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.warning react-native@0.66.5: Issues and pull requests filed against this version are not supported. See the React Native release support policy to learn more: https://github.com/reactwg/react-native-releases#releases-support-policyerror Command failed.Exit code: 128Command: gitArguments: ls-remote --tags --heads ssh://git@github.com/ZeroCho/react-native-naver-map.gitDirectory: C:\Users\asus\GChatProjectOutput:Host key verification failed.fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.yarn add v1.22.19[1/4] Resolving packages...[2/4] Fetching packages...info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command..Error: Command failed: yarn add react-native@0.66.5 react@17.0.2warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.warning react-native@0.66.5: Issues and pull requests filed against this version are not supported. See the React Native release support policy to learn more: https://github.com/reactwg/react-native-releases#releases-support-policyerror Command failed.Exit code: 128Command: gitArguments: ls-remote --tags --heads ssh://git@github.com/ZeroCho/react-native-naver-map.gitDirectory: C:\Users\asus\GChatProjectOutput:Host key verification failed.fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.yarn add v1.22.19[1/4] Resolving packages...[2/4] Fetching packages...info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command. at makeError (C:\Users\asus\GChatProject\node_modules\execa\index.js:174:9) at C:\Users\asus\GChatProject\node_modules\execa\index.js:278:16 at processTicksAndRejections (node:internal/process/task_queues:96:5) at async installDeps (C:\Users\asus\GChatProject\node_modules\@react-native-community\cli\build\commands\upgrade\upgrade.js:219:3) at async Object.upgrade [as func] (C:\Users\asus\GChatProject\node_modules\@react-native-community\cli\build\commands\upgrade\upgrade.js:359:9) at async Command.handleAction (C:\Users\asus\GChatProject\node_modules\@react-native-community\cli\build\index.js:192:9)info Run CLI with --verbose flag for more details.
- 0
- 2
- 515
질문&답변
nmap 에뮬레이터 build 관련 오류입니다..
아래는 npx react-native info 명령어 결과입니다. 66.5로 변경하면 된다는 stackoverflow글을 보고 변경했으나 아직해결되지 않고있습니다... 아이고..System: OS: Windows 10 10.0.19045 CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz Memory: 6.59 GB / 15.70 GB Binaries: Node: 16.17.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.19 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 8.15.0 - C:\Program Files\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: Not Found Windows SDK: Not Found IDEs: Android Studio: Not Found Visual Studio: 17.5.33530.505 (Visual Studio Community 2022) Languages: Java: 11.0.16.1 - C:\Program Files\Microsoft\jdk-11.0.16.101-hotspot\bin\javac.EXE npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.66.5 => 0.66.4 react-native-windows: Not Found npmGlobalPackages: react-native: Not Found
- 0
- 2
- 515
질문&답변
안녕하세요 tab-view 설계관련 질문입니다.
아하... 감사합니다..!!
- 0
- 2
- 320
질문&답변
73버전 cocoapod 다운로드 질문입니다.
프로젝트내의 Gemfile인데 관련있을까 하여 올립니다(사진)
- 1
- 2
- 340
질문&답변
안녕하세요 싱크 커넥터로 DB에 적용이 안되어 질문드리게 되었습니다.
제 오타떄문이 었습니다 ㅠㅠㅠ 시간쓰셨다면 죄송합니다 !!..
- 0
- 1
- 196
질문&답변
Appconfig, DI질문입니다.
sql 오류는 order가 예약어였다는 것을 찾아 해결했습니다! 하지만 아직도 main함수에서 돌리면 빈을 찾지 못했습니다 왜 그런가 하여 그냥 컨트롤러를 구현해 만들어 봤습니다.(사진)(사진)(사진)안됬던이유가 혹시 메인함수에서 실행을 할 경우 @SpringBootApplication에너테이션이 작동을 안해서 그런가요? 그리고 memberRepository에서 선언한 기능들(void save, optionalfindById)를 아래 사진의 MemberRepositoryJPA에서 오버라이드해서 구현할 경우 JPA에 있는 같은 이름의 함수와 충돌이 일어났습니다. 일단은 Configuration에서 MemberRepositoryJPA함수를 주입받아 필요한 Service구현체에도 넣어 주었습니다.하지만 이러면 Service구현체에서 MemberRepositoryJPA 타입의 객체에 받아야 해서 DIP에 위반되는 것 같습니다. MemberRepository에 선언한 기능들이 jpa와memberRepository를 extends한 구현체에서 PA에 있는 같은 이름의 함수와 충돌이 일어나지 않고 잘 쓸 수 있는지 궁금합니다. (사진)
- 0
- 2
- 239