pauls
@pauls
Reviews Written
-
Average Rating
-
Posts
Q&A
`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
- 491
Q&A
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
- 622
Q&A
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
- 622
Q&A
์๋ ํ์ธ์ tab-view ์ค๊ณ๊ด๋ จ ์ง๋ฌธ์ ๋๋ค.
์ํ... ๊ฐ์ฌํฉ๋๋ค..!!
- 0
- 2
- 402
Q&A
73๋ฒ์ cocoapod ๋ค์ด๋ก๋ ์ง๋ฌธ์ ๋๋ค.
ํ๋ก์ ํธ๋ด์ Gemfile์ธ๋ฐ ๊ด๋ จ์์๊น ํ์ฌ ์ฌ๋ฆฝ๋๋ค(์ฌ์ง)
- 1
- 2
- 448
Q&A
์๋ ํ์ธ์ ์ฑํฌ ์ปค๋ฅํฐ๋ก DB์ ์ ์ฉ์ด ์๋์ด ์ง๋ฌธ๋๋ฆฌ๊ฒ ๋์์ต๋๋ค.
์ ์คํ๋๋ฌธ์ด ์์ต๋๋ค ใ ใ ใ ์๊ฐ์ฐ์ จ๋ค๋ฉด ์ฃ์กํฉ๋๋ค !!..
- 0
- 1
- 260
Q&A
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
- 300




