• Stars
    star
    191
  • Rank 196,841 (Top 4 %)
  • Language
    Java
  • License
    MIT License
  • Created over 4 years ago
  • Updated 21 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

React Native view renderer in External Display

CI Status

React Native view renderer in External Display.

Introdution

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
IMG_1318 IMG_1319

iPod Touch connected to TV via AirPlay

Known issues

ios

  • Developer menu and keyborad 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 DevSettings module of React Native. (Such as through react-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

MIT


Built and maintained by BRICKS.

More Repositories

1

whisper.rn

React Native binding of whisper.cpp.
C
282
star
2

llama.rn

React Native binding of llama.cpp
C++
164
star
3

react-native-media-player

This is a react native media player with external display controller. Support photo, video, music and background mode.
JavaScript
99
star
4

react-native-s3

A React Native wrapper for AWS iOS/Android S3 SDK.
Objective-C
92
star
5

react-native-media-meta

Get media file metadata in your React Native app
Objective-C
81
star
6

react-native-xprinter

This is an android xprinter driver.
Java
13
star
7

react-native-multi-ble-peripheral

Multiple BLE Peripheral Manager on React Native
Kotlin
8
star
8

react-native-jsi-udp

C++
7
star
9

react-native-google-firebase

Firebase 3 (google version) native framework wrap.
Objective-C
6
star
10

react-native-call-modal

This module let you use api call to open React Native Modal and provide some basic panel most commonly.
JavaScript
6
star
11

react-native-global-keyevent

React Native module for listen global key event
Objective-C
4
star
12

react-native-web-sound

React Native for Web implementation of react-native-sound
JavaScript
4
star
13

llama.node

Node.js binding of Llama.cpp
C++
3
star
14

react-native-video-player

Video player for React Native
Kotlin
3
star
15

reanimated-easing

Use easing functions followed by `easings.net` in `React Native Reanimated`
JavaScript
3
star
16

image-mosaic

Creates an image mosaic with Node
JavaScript
3
star
17

yarn-workspace-sync-deps

A simple script for keeping dependencies are same between root and packages on Yarn workspaces
JavaScript
2
star
18

babel-plugin-react-native-electron

Babel plugin like `babel-plugin-react-native-web` for `react-native-electron`
JavaScript
1
star
19

react-native-skia-offscreencanvas

The browser-like OffscreenCanvas API for React Native.
JavaScript
1
star