react-native-youtube-portrait-mode-enabled
TypeScript icon, indicating that this package has built-in type declarations

2.1.3 • Public • Published

Extend version of react-native-youtube

I just add the portrait mode mentioned this article

All Readme can be found here

Install

yarn add react-native-youtube-portrait-mode-enabled

If you already the react-native-youtube package installed.

just remove the old one with

yarn remove react-native-youtube then rebuild your project

change your import names from react-native-youtube to react-native-youtube-portrait-mode-enabled

And because of you uninstalled the old package, you should run pod install to add XCDYouTubeKit to pod.

Extra install requirement

Expand ‘app > manifests’ , there might be two files with same name as ‘AndroidManifest.xml’ one for debug. Open the other one add these lines

<activity android:name="com.inprogress.reactnativeyoutube.YTPlayer"
    android:configChanges="orientation|screenSize|layoutDirection"
    android:turnScreenOn="true"
    tools:targetApi="o_mr1"
    android:resizeableActivity="true"
    />

Note: Don't care about YTPlayer not found error. Just build!

Thanks

License

MIT License

Package Sidebar

Install

npm i react-native-youtube-portrait-mode-enabled

Weekly Downloads

0

Version

2.1.3

License

MIT

Unpacked Size

301 kB

Total Files

37

Last publish

Collaborators

  • cyb3rsalih