노드 js, git 설치
코드를 아래 순서대로 입력
npm install -g expo-cli
npx create-expo-app my-app
npm install -g eas-cli
eas login
cd my-app
eas build:configure
// Build APKs for Android Emulators and devices
eas.json에 아래 복붙
{
"cli": {
"version": ">= 3.9.3"
},
"build": {
"preview": {
"android": {
"buildType": "apk"
}
},
"preview2": {
"android": {
"gradleCommand": ":app:assembleRelease"
}
},
"preview3": {
"developmentClient": true
},
"production": {}
}
}
eas build -p android --profile preview
// myapp 주소 지정
// com.*.myapp
//WebView 파트
npx expo install react-native-webview
// https://docs.expo.dev/versions/latest/sdk/webview/
// app.js에 복붙
import * as React from 'react';
import { WebView } from 'react-native-webview';
export default function App() {
return (
<WebView
source={{ uri: 'https://expo.dev' }}
/>
);
}
eas build
'AI 활용 서비스' 카테고리의 다른 글
새로나온 챗GPT MBTI 테스트 서비스 제작하기! #MBTI 해석 #MBTI 궁합 (2) | 2023.04.25 |
---|---|
너와 나의 MBTI 서비스 제작 리뷰!!! (0) | 2023.04.23 |
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 |
챗GPT API로 무료 타로 운세 상담! AI 타로리더 '사라' 소개합니다. (1) | 2023.04.15 |
댓글