rnww-plugin-screen-pinning
v1.1.0
Published
React Native WebView Screen Pinning Plugin with Expo support (Android Only)
Maintainers
Readme
RNWW Plugin Screen Pinning
React Native와 WebView 간 화면 고정(Screen Pinning) 기능을 연결하는 플러그인입니다. (Android 전용)
설치
npm install rnww-plugin-screen-pinning
# or
yarn add rnww-plugin-screen-pinning기능
- 앱 고정(Screen Pinning / Lock Task Mode) 시작 및 해제
- 앱 고정 상태 확인
- Android 전용 (API Level 21+)
브릿지 핸들러
다음 이벤트 핸들러가 등록됩니다:
getScreenPinning- 앱 고정 상태 확인startScreenPinning- 앱 고정 시작stopScreenPinning- 앱 고정 해제
사용법
앱 고정 시작
bridge.send('startScreenPinning', {}, (response) => {
if (response.success) {
console.log('Screen pinning started');
}
});앱 고정 해제
bridge.send('stopScreenPinning', {}, (response) => {
if (response.success) {
console.log('Screen pinning stopped');
}
});앱 고정 상태 확인
bridge.send('getScreenPinning', {}, (response) => {
console.log('Is pinned:', response.isPinned);
console.log('Lock task mode state:', response.lockTaskModeState);
});라이선스
MIT
