노드 js, git 설치
1. npm install -g expo-cli
2. npx create-expo-app my-app
3. npm install -g eas-cli
4. eas login
5. cd my-app
6. eas build:configure
7. eas.json 파일 클릭 후 아래 코드 복붙
{
"cli": {
"version": ">= 3.9.3"
},
"build": {
"preview": {
"android": {
"buildType": "apk"
}
},
"preview2": {
"android": {
"gradleCommand": ":app:assembleRelease"
}
},
"preview3": {
"developmentClient": true
},
"production": {}
}
}
7. eas build -p android --profile preview
- myapp 주소 지정(com.*.myapp)
8. npx expo install react-native-webview(https://docs.expo.dev/versions/latest/sdk/webview/)
9. app.js에 아래 코드 복붙
import * as React from 'react';
import { WebView } from 'react-native-webview';
export default function App() {
return (
<WebView
source={{ uri: '*' }}
/>
);
}
10. eas build
'AI 활용 서비스' 카테고리의 다른 글
openai api를 활용한 챗봇서비스 2023년 환경데이터 활용 및 분석 공모전 제출! (0) | 2023.06.04 |
---|---|
새로나온 챗GPT MBTI 테스트 서비스 제작하기! #MBTI 해석 #MBTI 궁합 (2) | 2023.04.25 |
EXPO를 활용해서 웹뷰 웹앱 만들기 (0) | 2023.04.20 |
OpenAI API Playground에서 챗GPT API 테스트하기! (2) | 2023.04.18 |
챗GPT API 활용 서비스 cors 문제 No 'Access-Control-Allow-Origin' header is present on the requested resource 해결 (4) | 2023.04.17 |
댓글