전체 글

import { theme } from '@/styles/theme'import styled from '@emotion/native'import React from 'react'import { Modal, Pressable, StyleSheet, View } from 'react-native'interface CommonBottomSheetProps { visible: boolean onClose: () => void children: React.ReactNode height?: number | string backgroundColor?: string backdropColor?: string borderRadius?: number}const CommonBottomSheet = ({ visi..
https://supabase.com/docs/reference/javascript/order JavaScript: Order the results | Supabase DocsJavaScript: Order the results Order the query result by column. You can call this method multiple times to order by multiple columns. You can order referenced tables, but it only affects the ordering of the parent table if you use !inner in the query. Parasupabase.comconst { data, error } = await su..
https://stackoverflow.com/questions/67623952/error-virtualizedlists-should-never-be-nested-inside-plain-scrollviews-with-th ERROR - VirtualizedLists should never be nested inside plain ScrollViews with the same orientationI'm working on a react-native app and I have to put a list of object in a Scrollview, so I use the FlatList component to do it. This is the piece of code that generates the err..
API키 신청https://opendart.fss.or.kr/mng/userApiKeyListView.do 전자공시 OPENDART 시스템 | 로그인 opendart.fss.or.kr 다운로드 폴더에서 Git Bash 혹은 CMD를 켜고 아래 코드 입력API_KEY="API_KEY 값 넣기"curl -o corpCode.zip "https://opendart.fss.or.kr/api/corpCode.xml?crtfc_key=$API_KEY"unzip corpCode.zip -d corpCode
1000단위마다 쉼표 붙이기, 소수점 둘째자리까지 표시하기, 금액을 한국어 단위로 변환하기// 숫자를 천 단위 구분자(,)가 있는 형식으로 변환function formatThousandSeparator(value: number | string): string { return Number(value).toLocaleString('ko-KR')}// 등락률을 소수점 둘째자리까지 표시 (예: 0.38)function formatFluctuationRate(value: number | string): string { const num = Number(value) return num.toFixed(2)}// 금액을 한국어 단위로 변환 (조, 억, 만)function formatKoreanCurrency(va..
개요릴리스 빌드는 웹처럼 DevTools 콘솔을 띄울 수 없음. 대신 다음 루틴으로 본다: 1) 실기기 로그캡처(adb logcat / Xcode Console) 2) 크래시/ANR 리포트(Play Console) 3) 원격 에러 수집(Sentry/Crashlytics) 4) 필요시 OTA(Expo Updates)로 “진단용 JS”를 푸시해 현장에서 확인목표: 크래시 전후의 스택/네트워크/환경변수 상태를 확보 → 원인 확정 Step 1. 기본 준비(안드로이드)1) 기기 설정 → 휴대전화 정보 → 빌드 번호 7회 탭 → 개발자 옵션 활성화 2) 개발자 옵션 → USB 디버깅 ON (무선 디버깅을 써도 됨: Android 11+) 3) PC에 Android Platform Tools 설치(ad..
시작하기환경 변수 저장.envEXPO_PUBLIC_SUPABASE_URL=https://abc123.supabase.coEXPO_PUBLIC_SUPABASE_ANON_KEY=abcd1234 환경변수 사용src/lib/supabaseClient.ts// lib/supabaseClient.ts// -------------------------------------------------------------// 목적: Supabase 클라이언트를 안전하게 생성 (릴리스/OTA/디버그 공통)// 핵심: EXPO_PUBLIC_ 접두 env를 process.env로 직접 참조// -------------------------------------------------------------import AsyncSto..
{ "cli": { "version": ">= 0.52.0", "appVersionSource": "remote" // ✨ 이거 추가 }, "build": { "development": { "distribution": "internal", "android": { "gradleCommand": ":app:assembleDebug" }, "env": { "EXPO_PUBLIC_SUPABASE_URL": "SUPABASE_URL", "EXPO_PUBLIC_SUPABASE_ANON_KEY": "SUPABASE_ANON_KEY", "EXPO_PUBLIC_SUPABASE_ROLE_KEY": "SUPABASE_..
순코딩
순코딩