React Native Tutorial 따라하기 – state

Component에는 props 말고도 state라는 데이터가 있다. state의 변수는 setState를 호출해서 변경 가능하다. 다음은 1초 마다 텍스트를 출력했다가 출력하지 않는 blink 형태로 화면을 구성하는 예제이다. import React, { Component } from…

1 Comment

React Native Tutorial 따라하기 – Props

props 이라는 것을 사용하여 Component를 원하는 형태로 생성하는 것이 가능하다. 예를 들면 Image라는 Component에 source props를 설정하여 원하는 이미지를 표현하는 Component로 만드는 것이 가능하다. 다음은 그에 대한 예제이다. import React,…

1 Comment

React-native 예제 따라하기

expo-cli 참고 https://academy.realm.io/kr/posts/react-native/https://oolluu.tistory.com/1https://developer.android.com/studio/run/managing-avdshttps://facebook.github.io/react-native/docs/getting-started.html#android-development-environmenthttps://levelup.gitconnected.com/comprehensive-guide-to-create-simple-app-using-react-native-web-and-react-native-elements-306cf43fb8d7?gi=a7a9e16bd089

0 Comments

android-sdk does not exist

react-native 프로젝트 실행을 할 때 다음과 같이 에러가 나오는 경우 * What went wrong: A problem occurred configuring project ':app'. > The SDK directory '/usr/local/opt/android-sdk' does not exist. * Try:…

0 Comments

Dialogflow event trigger

Dialogflow를 사용하다가 특정 문장 입력 없이 reponse를 받는 방법이 없을까 고민하던 중 event trigger 기능이 있는 것을 알았다. Intent를 정의할 때 Event name을 지정할 수 있는데 이를 사용해서 response를 받는…

0 Comments

snowboy를 이용한 hot word detection

의존 패키지 설치 $ sudo apt-get install swig $ sudo apt-get install python-pyaudio python3-pyaudio sox $ sudo apt-get install libatlas-base-dev $ sudo apt-get install portaudio19-dev $ sudo apt-get install python-dev…

0 Comments

Python으로 Telegram 응답 봇 만들기

다음은 Telegram과 연동하여 메시지, 이미지를 받고 response할 수 있는 예제 코드다. from telegram.ext import Updater, MessageHandler, Filters, CommandHandler # import modules import os my_token = '' print('start telegram chat bot')…

0 Comments