프로젝트
GitHub에서 보기
mybigday/react-native-external-display
소개
React Native view renderer in External Display
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +2
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalreact-native-external-display
React Native view renderer on External Display. Also supports Multiple Scenes on iOS.
- Package (react-native-external-display)
- Example
- Example of iPad Multiple Scenes - Simple Multiple Windows Browser
Introdution
- iOS
- Android - Presentation API
import React from 'react'
import Video from 'react-native-video'
import ExternalDisplay, {
useExternalDisplay,
} from 'react-native-external-display'
function App() {
const screens = useExternalDisplay()
return (
<ExternalDisplay
mainScreenStyle={{ flex: 1 }}
fallbackInMainScreen
screen={Object.keys(screens)[0]}
>
<Video
source={{
uri: 'http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4',
}}
style={{ flex: 1 }}
repeat
muted
/>
</ExternalDisplay>
)
}
| No selected screen | Selected |
|---|---|
![]() |
![]() |
iPod Touch connected to TV via AirPlay
Known issues
ios
- Developer menu and keyboard shoutcuts may not work properly if you attached view renderer into external screen, until it leaves the external screen. As an alternative, you can use dev menu functions from
DevSettingsmodule of React Native. (Such as throughreact-native-debugger)
android
- Not good support for react-native
Modal, it always show on main screen for Android
About iPad Split View / Slide Over
If you want the app works on iPad Split View and External screen, the app should be main screen (on left as Split View), It doesn't work on right side or as Slide Over, because it wouldn't receive UIScreenDidConnectNotification event.
Related projects
License
Built and maintained by BRICKS.
관련 프로젝트 살펴보기
불러오는 중…

