월 14,300원
5개월 할부 시다른 수강생들이 자주 물어보는 질문이 궁금하신가요?
- 미해결배달앱 클론코딩 [with React Native]
SK open API홈페이지 리뉴얼 후 sdk 받는 경로를 못찾겠습니다ㅜ
SK open API홈페이지 리뉴얼 후 sdk 받는 경로를 못찾겠습니다ㅜ
- 미해결배달앱 클론코딩 [with React Native]
Ios 네이버맵 세팅 강의 화면들이 끊기는 것 같은데 저만 그런까요?
강의가 중간중간 멈춰있는 느낌이 있는데 저만 그런가요ㅜㅜ
- 미해결배달앱 클론코딩 [with React Native]
아카이브 중
안녕하세요 제로초님 아카이브중에 이에러가 떠서Multiple commands produce '/Users/js/Library/Developer/Xcode/DerivedData/FoodDeliveryApp-hizgjtktrbbtxygltyjrhnhuhijf/Build/Intermediates.noindex/ArchiveIntermediates/FoodDeliveryApp/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AccessibilityResources.bundle' 구글링했는데 이경로의중복파일 삭제하라고 나와있습니다근데 잘못찾을꺼같아서 질문 남깁니다막 삭제하다가는 망할꺼같아서...
- 미해결배달앱 클론코딩 [with React Native]
배포하기전에
마지막 배포단계까지왔는데빌드까지 에러 없이 진행했는데 코드푸쉬 설정하고 마지막테스트를 할려고 아이폰으로 빌드했는데 스플레쉬 화면이 꺼지지가 않네요Unable to symbolicate stack trace: The stack is null Error: Unable to resolve module ./Libraries/Components/DatePicker/DatePickerIOS from /Users/js/Delivery/node_modules/react-native/index.js: None of these files exist: * node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx) * node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS/index(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx) 15 | import typeof ActivityIndicator from './Libraries/Components/ActivityIndicator/ActivityIndicator'; 16 | import typeof Button from './Libraries/Components/Button'; > 17 | import typeof DatePickerIOS from './Libraries/Components/DatePicker/DatePickerIOS'; | ^ 18 | import typeof DrawerLayoutAndroid from './Libraries/Components/DrawerAndroid/DrawerLayoutAndroid'; 19 | import typeof FlatList from './Libraries/Lists/FlatList'; 20 | import typeof Image from './Libraries/Image/Image'; at ModuleResolver.resolveDependency (/Users/js/Delivery/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:107:15) at DependencyGraph.resolveDependency (/Users/js/Delivery/node_modules/metro/src/node-haste/DependencyGraph.js:288:43) at Object.resolve (/Users/js/Delivery/node_modules/metro/src/lib/transformHelpers.js:129:24) at resolve (/Users/js/Delivery/node_modules/metro/src/DeltaBundler/traverseDependencies.js:396:33) at /Users/js/Delivery/node_modules/metro/src/DeltaBundler/traverseDependencies.js:412:26 at Array.reduce (<anonymous>) at resolveDependencies (/Users/js/Delivery/node_modules/metro/src/DeltaBundler/traverseDependencies.js:411:33) at processModule (/Users/js/Delivery/node_modules/metro/src/DeltaBundler/traverseDependencies.js:140:31) at async addDependency (/Users/js/Delivery/node_modules/metro/src/DeltaBundler/traverseDependencies.js:230:18) at async Promise.all (index 0) 메트로에는 이것만 뜹니다. 서버는 켜둔상태입니다!appinner에 hide도 해주었습니다 useEffect(() => { const getTokenAndRefresh = async () => { try { const token = await EncryptedStorage.getItem("refreshToken"); if (!token) { SplashScreen.hide(); return; } const response = await axios.post( `${Config.API_URL}/refreshToken`, {}, { headers: { authorization: `Bearer ${token}`, }, } ); dispatch( userSlice.actions.setUser({ name: response.data.data.name, email: response.data.data.email, accessToken: response.data.data.accessToken, }) ); } catch (error) { console.error(error); if ((error as AxiosError).response?.data.code === "expired") { Alert.alert("알림", "다시 로그인 해주세요."); } } finally { SplashScreen.hide(); } }; getTokenAndRefresh(); }, [dispatch]);
- 미해결배달앱 클론코딩 [with React Native]
(맥설정)코드푸쉬 설정하기 강의중
저 같은 경우에 npm run appcenter-ios-key하면이 에러가 나왔는데 appcenter login 먼저 하면 브라우저창이 하나 더 뜨면서 액세스키가 나온것을 터미널 창에 입력하는곳에 붙여넣기 하고 진행한다음에 npm run appcenter-ios-key 를 하면 키값이 나왔습니다! 그리고 마지막에 제로초님 codepush:ios 명령어 치고 성공해도 브라우저에 안떠서 브라우저에 떠있는 명령어로 치니까 브라우저에 나타났습니다!
- 미해결배달앱 클론코딩 [with React Native]
안드로이드 FCM설정하기 중
안녕하세요 제로초님 강의대로 따라하다가 안드로이드에서 이런 에러가 떴는데 구글링해도 해결이 안되서 질문으로 남깁니다Multiple build operations failed. Null extracted folder for artifact: ResolvedArtifact(componentIdentifier=com.facebook.react:react-native:0.71.0-rc.0, variantName=null, artifactFile=/Users/js/.gradle/caches/modules-2/files-2.1/com.facebook.react/react-native/0.71.0-rc.0/7a7f5a0af6ebd8eb94f7e5f7495e9d9684b4f543/react-native-0.71.0-rc.0-debug.aar, extractedFolder=null, dependencyType=ANDROID, isWrappedModule=false, buildMapping={__current_build__=/Users/js/Delivery/android}, mavenCoordinatesCache=com.android.build.gradle.internal.ide.dependencies.MavenCoordinatesCacheBuildService$Inject@679342af) Null extracted folder for artifact: ResolvedArtifact(componentIdentifier=com.facebook.react:react-native:0.71.0-rc.0, variantName=null, artifactFile=/Users/js/.gradle/caches/modules-2/files-2.1/com.facebook.react/react-native/0.71.0-rc.0/7a7f5a0af6ebd8eb94f7e5f7495e9d9684b4f543/react-native-0.71.0-rc.0-debug.aar, extractedFolder=null, dependencyType=ANDROID, isWrappedModule=false, buildMapping={__current_build__=/Users/js/Delivery/android}, mavenCoordinatesCache=com.android.build.gradle.internal.ide.dependencies.MavenCoordinatesCacheBuildService$Inject@679342af) Null extracted folder for artifact: ResolvedArtifact(componentIdentifier=com.facebook.react:react-native:0.71.0-rc.0, variantName=null, artifactFile=/Users/js/.gradle/caches/modules-2/files-2.1/com.facebook.react/react-native/0.71.0-rc.0/7a7f5a0af6ebd8eb94f7e5f7495e9d9684b4f543/react-native-0.71.0-rc.0-debug.aar, extractedFolder=null, dependencyType=ANDROID, isWrappedModule=false, buildMapping={__current_build__=/Users/js/Delivery/android}, mavenCoordinatesCache=com.android.build.gradle.internal.ide.dependencies.MavenCoordinatesCacheBuildService$Inject@679342af) Null extracted folder for artifact: ResolvedArtifact(componentIdentifier=com.facebook.react:react-native:0.71.0-rc.0, variantName=null, artifactFile=/Users/js/.gradle/caches/modules-2/files-2.1/com.facebook.react/react-native/0.71.0-rc.0/7a7f5a0af6ebd8eb94f7e5f7495e9d9684b4f543/react-native-0.71.0-rc.0-debug.aar, extractedFolder=null, dependencyType=ANDROID, isWrappedModule=false, buildMapping={__current_build__=/Users/js/Delivery/android}, mavenCoordinatesCache=com.android.build.gradle.internal.ide.dependencies.MavenCoordinatesCacheBuildService$Inject@679342af)
- 미해결배달앱 클론코딩 [with React Native]
xcode 에 push Notification
안녕하세요 제로초님 xcode에 백그라운드모드는 있는데 push Notification 항목이 없습니다
- 미해결배달앱 클론코딩 [with React Native]
아이폰에서 티맵열기
안녕하세요 제로초님아이폰14프로를 연결해서 하고있는데 티맵이 설치가 안되어 있다고 알림창이 계속 뜹니다에러는 -canOpenURL: failed for URL: "tmap:" - error: "This app is not allowed to query for scheme tmap" [javascript] 'TMap callback', false이렇게 뜹니다다른분 질문보고 info.plist에서 <array><string>tmap</string></array>까지 하고 xcode는 어디에서 설정을 해주어야하는지 모르겠습니다
- 미해결배달앱 클론코딩 [with React Native]
앱아이콘
안녕하세요 제로초님 앱아이콘을 다운받는게 아니라 가지고 있는 이미지를 활용해서 생성하는건가요?
- 미해결배달앱 클론코딩 [with React Native]
메트로서버하고 에뮬레이터
안녕하세요 제로초님npm run android로 실행하면 앱은 켜지는데메트로서버하고 에뮬레이터가 연동이 안되어있습니다ios는 연동이 잘되는데 안드로이드만 안되어있습니다구글링해서 해본것은 adb devices하고 adb -s 디바이스명 reverse tcp:8081 tcp:8081까지 해봤습니다
- 미해결배달앱 클론코딩 [with React Native]
git에 올리려는데 git lfs로 해도 용량 초과 에러 뜹니다
안녕하세요 제로초님 제가 이 프로젝트를 git에 올리려니까 용량 초과한다고해서homebrew install git-lfs를 한뒤 해당 프로젝트에서git-lfs install을 하고 올려도 용량을 초과했다고 에러가 뜹니다 현재 구글링해서 찾아보면서 해보고있는데 안되고 있네요 ㅠㅠ
- 미해결배달앱 클론코딩 [with React Native]
네이버맵 연동하기 강의중에
안녕하세요 제로초님ios 시뮬레이션에서는 오더 목록까지는 뜨는데 누르면이 두에러가 뜹니다 참고로 react 버전은 17버전입니다그리고 안드로이드 시뮬레이터에서는 아예 앱이 안켜지고아래 에러가 뜹니다EachOrder 코드에서 빨간줄은 없습니다npm run android 하면 이에러가 뜹니다> Configure project :app Reading env from: .env > Configure project :react-native-flipper WARNING:: The specified Android SDK Build Tools version (28.0.3) is ignored, as it is below the minimum supported version (30.0.2) for Android Gradle Plugin 4.2.2. Android SDK Build Tools 30.0.2 will be used. To suppress this warning, remove "buildToolsVersion '28.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools. > Task :app:packageDebug FAILED 151 actionable tasks: 12 executed, 139 up-to-date Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:packageDebug'. > A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable > Java heap space * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 17s error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:packageDebug'. > A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable > Java heap space * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 17s at makeError (/Users/js/Delivery/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:174:9) at /Users/js/Delivery/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:278:16 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async runOnAllDevices (/Users/js/Delivery/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5) at async Command.handleAction (/Users/js/Delivery/node_modules/@react-native-community/cli/build/index.js:192:9) info Run CLI with --verbose flag for more details.
- 미해결배달앱 클론코딩 [with React Native]
아이폰으로 회원가입
안녕하세요 제로초님 아이폰으로 회원가입 할려는데안드로이드는 잘되지만 아이폰만 안되서 질문 드립니다강의 교안 보고 Podfile에 pod 'react-native-config', :path => '../node_modules/react-native-config/react-native-config.podspec' 추가해보기 해봤는데 회원가입이 안되고 로그에 undefined가 계속 뜨네요require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' platform :ios, '11.0' pod 'react-native-config', :path => '../node_modules/react-native-config/react-native-config.podspec' target 'FoodDeliveryApp' do config = use_native_modules! use_react_native!( :path => config[:reactNativePath], # to enable hermes on iOS, change `false` to `true` and then install pods :hermes_enabled => false ) target 'FoodDeliveryAppTests' do inherit! :complete # Pods for testing end # Enables Flipper. # # Note that if you have use_frameworks! enabled, Flipper will not work and # you should disable the next line. use_flipper!() post_install do |installer| react_native_post_install(installer) __apply_Xcode_12_5_M1_post_install_workaround(installer) end end여기에 추가하는게 맞나요?
- 미해결배달앱 클론코딩 [with React Native]
Apple Developer에서 fcm설정에 관하여 질문있습니다.
안녕하세요. 제로초님. 제가 강의에서 제가 이해한 것이 맞는지 헷갈려서 질문드립니다..(우선 keys는 하나로 여러 앱에 사용할 수 있는 것은 이해했습니다.)강의에서는 fcm 설정을 위해 p12(인증서 방식)이 아닌 p8(인증키 방식)으로 하고 있습니다.강의 과정에서는Apple developer Identifiers 탭에서 해당앱을 누르고 push notification에서 edit을 누른 후 Development SSL Certificate와 Production SSL Certificate 두개를 만든 후 다운로드하면 Apple developer에서 Certificates 탭에 방금 만든 push services와 Sandbox push services 두개의 Certificates가 만들어진 것을 볼 수 있습니다. 그런데 만약 A라는 앱과 B라는 앱 두개모두 fcm을 사용한다고 가정할 때 Identifiers각각 위의 과정을 거쳐야 한다면 push services(2개)와 Sandbox push services(2개) 총 4개의 Certificates가 생성될 텐데 이런 방식으로 하면 되는 것인지 궁금합니다. 즉 Certificates에서 push services는 앱에 따라서 여러개를 만들어야 하는것인지 궁금합니다.
- 미해결배달앱 클론코딩 [with React Native]
naver 지도 추가 이후 에러
네이버 맵 연동 강의 이후 npm i react-native-nmap --forcecom.fooddeliveryapp 사이에 폴더 추가com.tjdwo.fooddeliveryapppackage 이름 전부 수정 PS C:\Users\ksj\FoodDeliveryApp> npm run android> FoodDeliveryApp@0.0.1 android> react-native run-androidinfo JS server already running.info Installing the app...> Configure project :appReading env from: .env> Configure project :react-native-flipperWARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings5 actionable tasks: 5 up-to-datePicked up JAVA_TOOL_OPTIONS: -Djava.net.preferIPv4Stack=true FAILURE: Build failed with an exception. * What went wrong:Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'. > Could not find com.naver.maps:map-sdk:3.16.2. Required by: project :app* Try:> Run with --stacktrace option to get the stack trace.> Run with --info or --debug option to get more log output.> Run with --scan to get full insights.* Get more help at https://help.gradle.orgBUILD FAILED in 10serror Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.BUILD FAILED in 10s at makeError (C:\Users\ksj\FoodDeliveryApp\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:174:9) at C:\Users\ksj\FoodDeliveryApp\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:278:16 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async runOnAllDevices (C:\Users\ksj\FoodDeliveryApp\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:82:7) at async Command.handleAction (C:\Users\ksj\FoodDeliveryApp\node_modules\@react-native-community\cli\build\index.js:108:9)info Run CLI with --verbose flag for more details.PS C:\Users\ksj\FoodDeliveryApp> 구글에 찾아보고 몇시간째 삽질 중입니다 ㅠ.ㅠ최신 naver map 에 gradle 버전이나 추가해야하는 곳이 더 있을까요?"name": "react-native", "version": "0.71.6",
- 해결됨배달앱 클론코딩 [with React Native]
react-native-nmap 설치 후 빌드하면 에러
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01Warning: ����ġ ���� ���(URI: "", ����: "base-extension")�Դϴ�. �ʿ��� ��Ҵ� <{}codename>,<{}layoutlib>,<{}api-level>�Դϴ�.FAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':react-native-nmap:generateDebugRFile'.> Could not resolve all files for configuration ':react-native-nmap:debugCompileClasspath'. > Failed to transform react-native-0.71.0-rc.0-debug.aar (com.facebook.react:react-native:0.71.0-rc.0) to match attributes {artifactType=android-symbol-with-package-name, com.android.build.api.attributes.BuildTypeAttr=debug, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-api}. > Execution failed for JetifyTransform: C:\Users\jeong\.gradle\caches\modules-2\files-2.1\com.facebook.react\react-native\0.71.0-rc.0\7a7f5a0af6ebd8eb94f7e5f7495e9d9684b4f543\react-native-0.71.0-rc.0-debug.aar. > Java heap space* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Get more help at https://help.gradle.org at makeError (C:\Users\jeong\Glins\node_modules\execa\index.js:174:9) at C:\Users\jeong\Glins\node_modules\execa\index.js:278:16 at processTicksAndRejections (node:internal/process/task_queues:96:5) at async runOnAllDevices (C:\Users\jeong\Glins\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5) at async Command.handleAction (C:\Users\jeong\Glins\node_modules\@react-native-community\cli\build\index.js:192:9)info Run CLI with --verbose flag for more details.PS C:\Users\jeong\Glins> 이런식으로 에러가 뜨는데 모든 캐시를 지우고 다른 프로젝트에서 시도해봐도 해결이 되지 않네요...ㅠㅠ
- 미해결배달앱 클론코딩 [with React Native]
Marker 클릭시 해당 Marker size나 또는 색상을 변경할 수 있나요?
안녕하세요. 문의사항이 있습니다.네이버 지도에 Marker가 많을 때 임의로 한 마커를 클릭하면임의로 클릭한 Marker의 사이즈나 색상등을 변경할 수 있는지 문의드립니다.소스는 아래와 같고,mapRef.current[index].width = 40 mapRef.current[index].height = 40이런식으로 변경을 해도 변경이 되지 않아 문의 드립니다.const mapRef = useRef([]); <Marker ref={el => mapRef.current[idx] = el} key={item.code} coordinate={location} image={require("../../assets/images/pin_primary.png")} width={35} height={35} useTextureView={true} onClick={() => mapClickHanlder(idx)} //caption={{text:item.title_text}} />const mapClickHanlder = useCallback((index) => { console.log("map click: ", mapRef.current[index]); const selectedMarker = mapRef.current[index]; selectMarker.width = 40; selectMarker.height = 40; console.log(selectedMarker); }, []);
- 해결됨배달앱 클론코딩 [with React Native]
안드로이드 Default Splash Screen 없애는 방법
안녕하세요 제로초님, Splash Screen을 설정하는 과정 중에 안드로이드에서 Splash Screen이 두 개가 나옵니다. Default Splash Screen과 제가 만든 Splash Screen, 이렇게 두 개가 나오는데 Default Splash Screen을 나오지 않게 하는 방법을 알고 싶습니다.아래와 같은 순서로 앱이 실행됩니다.
- 미해결배달앱 클론코딩 [with React Native]
setting을 통해 build 하는 경우 Failed to install the app
C:\Users\jeong\setting>npm run android> fooddeliveryapp@0.0.1 android> react-native run-androidinfo Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.Jetifier found 927 file(s) to forward-jetify. Using 8 workers...info JS server already running.info Installing the app...> Task :react-native-safe-area-context:compileDebugJavaWithJavac> Task :react-native-screens:generateDebugRFile FAILEDDeprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.Use '--warning-mode all' to show the individual deprecation warnings.See https://docs.gradle.org/6.9/userguide/command_line_interface.html#sec:command_line_warnings52 actionable tasks: 52 executedWarning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01Warning: ����ġ ���� ���(URI: "", ����: "base-extension")�Դϴ�. �ʿ��� ��Ҵ� <{}codename>,<{}layoutlib>,<{}api-level>�Դϴ�.Note: Some input files use or override a deprecated API.Note: Recompile with -Xlint:deprecation for details.FAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':react-native-screens:generateDebugRFile'.> Could not resolve all files for configuration ':react-native-screens:debugCompileClasspath'. > Failed to transform react-native-0.71.0-rc.0-debug.aar (com.facebook.react:react-native:0.71.0-rc.0) to match attributes {artifactType=android-symbol-with-package-name, com.android.build.api.attributes.BuildTypeAttr=debug, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-api}. > Execution failed for JetifyTransform: C:\Users\jeong\.gradle\caches\modules-2\files-2.1\com.facebook.react\react-native\0.71.0-rc.0\7a7f5a0af6ebd8eb94f7e5f7495e9d9684b4f543\react-native-0.71.0-rc.0-debug.aar. > Java heap space* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Get more help at https://help.gradle.orgBUILD FAILED in 16serror Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01Warning: ����ġ ���� ���(URI: "", ����: "base-extension")�Դϴ�. �ʿ��� ��Ҵ� <{}codename>,<{}layoutlib>,<{}api-level>�Դϴ�.Note: Some input files use or override a deprecated API.Note: Recompile with -Xlint:deprecation for details.FAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':react-native-screens:generateDebugRFile'.> Could not resolve all files for configuration ':react-native-screens:debugCompileClasspath'. > Failed to transform react-native-0.71.0-rc.0-debug.aar (com.facebook.react:react-native:0.71.0-rc.0) to match attributes {artifactType=android-symbol-with-package-name, com.android.build.api.attributes.BuildTypeAttr=debug, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-api}. > Execution failed for JetifyTransform: C:\Users\jeong\.gradle\caches\modules-2\files-2.1\com.facebook.react\react-native\0.71.0-rc.0\7a7f5a0af6ebd8eb94f7e5f7495e9d9684b4f543\react-native-0.71.0-rc.0-debug.aar. > Java heap space* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Get more help at https://help.gradle.orgBUILD FAILED in 16s at makeError (C:\Users\jeong\setting\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:174:9) at C:\Users\jeong\setting\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:278:16 at processTicksAndRejections (node:internal/process/task_queues:96:5) at async runOnAllDevices (C:\Users\jeong\setting\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5) at async Command.handleAction (C:\Users\jeong\setting\node_modules\@react-native-community\cli\build\index.js:192:9)info Run CLI with --verbose flag for more details.C:\Users\jeong\setting> 개발환경까지 모두 제거하고 여러번 다시 깔고해봤는데 되지가 않습니다...과거에 혼자서 최신버전 react native로는 빌드에 성공한 적이 있긴합니다.....
- 해결됨배달앱 클론코딩 [with React Native]
try catch 문에서 error handling 시에 'as' 대신 instance of 로 핸들링 할 수 있을까요?
안녕하세요. 제로초님try catch 문에서 error handling 시에 typescript의 as로 타입의 assertion 대신 아래와 같이 instanceof로 잡는 것은 좋을 방법인지 질문드립니다.try { setLoading(true); const response = await axios.post('/user', { email, name, password, }); Alert.alert('알림', '회원가입 완료'); } catch (error) { if (error instanceof AxiosError) { Alert.alert( '네트워크 에러', error.response?.data.message ?? '알수없는 에러가 발생했습니다', ); } } finally { setLoading(false); }