시작하기
이 플러그인의 설치 단계와 전체 markdown 가이드가 포함된 설정 프롬프트를 복사하세요.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-navigation-bar`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/navigation-bar/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
설치
“설치” 섹션AI 지원 설정으로 플러그인을 설치할 수 있습니다. 다음 명령어로 AI 도구에 Capgo 스킬을 추가하세요:
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins그다음 아래 prompt를 사용하세요:
Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-navigation-bar` plugin in my project.Manual Setup을 선호한다면, 다음 명령어를 실행하여 플러그인을 설치하고 아래의 플랫폼별 지침을 따르세요:
bun add @capgo/capacitor-navigation-barbunx cap sync가져오기
“Import” 섹션import { NavigationBar } from '@capgo/capacitor-navigation-bar';빠른 시작
“Quick start” 섹션어두운 헤더와 밝은 아이콘에 맞춰 내비게이션 바를 설정합니다.
import { NavigationBar } from '@capgo/capacitor-navigation-bar';
await NavigationBar.setNavigationBarColor({ color: '#0f172a', darkButtons: false,});예시: 몰입형 읽기 모드
“예시: 몰입형 독서 모드” 섹션await NavigationBar.hide();// later, when leaving the readerawait NavigationBar.show();예시: 현재 테마 읽기
“예시: 현재 테마 읽기” 섹션const { color, darkButtons } = await NavigationBar.getNavigationBarColor();자주 하는 실수
“자주 하는 실수” 섹션- Android 전용: 이 플러그인에는 iOS용 navigation bar 기능이 없습니다.
- Edge to edge: status bar 및 WebView safe area CSS와 조합하여, 바가 다시 나타날 때 콘텐츠가 가려지지 않도록 하세요.
API 개요
“API 개요” 섹션setNavigationBarColor
“setNavigationBarColor” 섹션navigation bar 색상과 버튼 테마를 설정합니다.
import { NavigationBar, NavigationBarColor } from '@capgo/capacitor-navigation-bar';
// Set to white with dark buttonsawait NavigationBar.setNavigationBarColor({ color: NavigationBarColor.WHITE, darkButtons: true});
// Set to custom colorawait NavigationBar.setNavigationBarColor({ color: '#FF5733', darkButtons: false});
// Set a custom divider color on Android 9+await NavigationBar.setNavigationBarColor({ color: NavigationBarColor.WHITE, darkButtons: true, dividerColor: '#D9D9D9'});getNavigationBarColor
“getNavigationBarColor” 섹션현재 navigation bar 색상과 버튼 테마를 가져옵니다.
import { NavigationBar } from '@capgo/capacitor-navigation-bar';
const { color, darkButtons } = await NavigationBar.getNavigationBarColor();console.log('Current color:', color);console.log('Using dark buttons:', darkButtons);타입 참조
“타입 레퍼런스” 섹션NavigationBarColor
“NavigationBarColor” 섹션미리 정의된 navigation bar 색상입니다.
export enum NavigationBarColor { /** White color */ WHITE = '#FFFFFF', /** Black color */ BLACK = '#000000', /** Transparent color */ TRANSPARENT = 'transparent',}기준 소스
“기준 소스” 섹션이 페이지는 플러그인의 src/definitions.ts에서 생성되었습니다. public API가 업스트림에서 변경되면 동기화를 다시 실행하세요.
Getting Started에서 계속하기
“Getting Started에서 계속하기”라는 제목의 섹션사용 중인 경우 시작하기 네이티브 미디어 및 인터페이스 동작을 설계하려면, 이를 다음 항목과 연결하세요 @capgo/capacitor-navigation-bar 사용하기 @capgo/capacitor-navigation-bar를 사용하여 네이티브 기능을 구현할 때, @capgo/capacitor-live-activities 사용하기 @capgo/capacitor-live-activities 사용하기의 네이티브 기능을 위해서는, @capgo/capacitor-live-activities @capgo/capacitor-live-activities의 구현 세부 사항에 대해서는, @capgo/capacitor-video-player 사용하기 @capgo/capacitor-video-player 사용하기의 네이티브 기능에 대해서는, 그리고 @capgo/capacitor-video-player @capgo/capacitor-video-player.의 구현 세부 사항에 대해서는