Skip to content
This repository has been archived by the owner on Jun 11, 2020. It is now read-only.

teamairship/react-native-android-fullscreen-webview-video

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecated

This package was created to extend WebView from react-native. However, react-native-webview has now added the specific functionality this package was created for, so this package isn't needed anymore.

Please use react-native-webview going forward.


react-native-android-fullscreen-webview-video

Overview

The WebView component that comes with React Native doesn't have the ability to show videos fullscreen by default. This package essentially copies the existing WebView for Android and adds some extra functionality to enable fullscreen videos. This behavior is supported by default for iOS, so this will simply use the native iOS WebView.

Getting started

yarn add react-native-android-fullscreen-webview-video

or

npm install react-native-android-fullscreen-webview-video --save

Automatically link the library

react-native link

Usage

This works exactly like the existing WebView component, so there is nothing extra that needs to be added.

import WebView from 'react-native-android-fullscreen-webview-video';

...

<WebView
  source={{ uri: 'https://www.youtube.com/embed/dQw4w9WgXcQ' }}
/>

MIT License.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published