본문 바로가기

반응형
SMALL

전체 글

반응형
LIST
(59)

[ React ] big calendar 에서 onSelectSlot 동작 안하는 문제 big calendar 에서 onSelectSlot 가 동작을 안하는 문제 localizer={localizer} events={events} startAccessor="start" endAccessor="end" style={{ height: 600 }} view={view} date={date} onView={(newView) => setView(newView)} defaultDate={new Date()} defaultView="month" views={['month', 'week', 'day']} components={{ toolb..
[ React ] big calendar 월/주/일 이동 리액트 big calendar 에서 월/주/일 이동 버튼이 작동 안해서 수정 const Toolbar = ({ date, label, onNavigate, onView, view }) => { return (…….. //이전 월/주/일 로 이동 src={left_icon} alt="이전" style={{ cursor: "pointer", width: 30, height: 30, marginRight: 10}} onClick={() => { const newDate = moment(date).subtract(1, view === "month" ? "month" : view === "week" ? "week" : "..
FlatList 에서 TouchableOpacity 동작 안하는 오류 FlatList 내 아이템은 TouchableOpacity로 구현해놨는데 onPress가 간헐적으로 동작 했다 해결 방법은 TouchableOpacity를 react-native-gesture-handler 껄로 import 해서 사용하면 됨 import { TouchableOpacity } from "react-native-gesture-handler";   }>                 해결 ~!
[ React Native ] pod install 시 Invalid Podfile file: cannot load such file -- node_modules/react-native/scripts/react_native_pods.rb pod install 을 하면 계속 아래 오류가 났다 [!] Invalid Podfile file: cannot load such file -- /Users/yrlee/Documents/reactNative/NativeCLITest/node_modules/react-native/scripts/react_native_pods.rb Debugger attached. Waiting for the debugger to disconnect....  # from /Users/yrlee/Documents/reactNative/NativeCLITest/ios/Podfile:2 # ------------------------------------------- # # Resolve react_native_pods.rb w..
[ios/swift] 웹뷰 내 마이크 실행 웹에서 mdn web speech api 이용해 음성인식 기능 구현된 상태 wkwebview 에서도 마이크 동작되게 하려면 1. info.plist 에 추가NSMicrophoneUsageDescription.......NSSpeechRecognitionUsageDescription........ >> NSMicrophoneUsageDescription 만 추가했을때 마이크가 동작 안되다가 NSSpeechRecognitionUsageDescription 도 추가 하니 마이크가 동작됐다. gpt 한테 물어보니 web speech api 이용하려면 NSSpeechRecognitionUsageDescription 도 추가해야한다고 함. 2. wkwebview 함수 추가    @available(iOS 15, *..
[android/kotlin] 웹뷰 내 마이크 실행 웹에서 mdn web speech api를 이용해 음성인식 구현되어져 있는 상태 안드로이드 앱 내 웹뷰에서도 동작 구현되도록 하려면 1.  AndroidManifest.xml에 마이크 권한 추가     2. webChromeClient 에 onPermissionRequest 함수 추가    @Override    public void onPermissionRequest(final PermissionRequest request) {        for (String resource : request.getResources()) {            if (PermissionRequest.RESOURCE_AUDIO_CAPTURE.equals(resource)) {                // 마이크 권..
[ios/swift] game center 로그인 하기 AppDelegate.swiftfunc application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {...GameCenterManager().authenticateLocalPlayer()..} GameCenterHelper.swiftimport Foundationimport GameKit class GameCenterManager: NSObject, GKGameCenterControllerDelegate {        var isAuthenticated = false     func authenticateLocalPlaye..
[android/kotlin] play game 로그인 하기 google play console 에서 play 게임즈 서비스 설정이 완료되었다는 가정하에 ~ ** OAuth 2.0 클라이언트 ID 안드로이드는 디버그,릴리즈,서명키 3개 등록해야함 AndroidManifest.xmlm.google.android.gms.games.APP_ID"   android:value="@string/app_id" />m.google.android.gms.version"  android:value="@integer/google_play_services_version"/> ---------MainActivity.ktonCreate 에PlayGamesSdk.initialize(this)loginPlayGame()     fun loginPlayGame(){        val gam..