2.1.3 • Published 3 years ago

react-native-youtube-portrait-mode-enabled v2.1.3

Weekly downloads
7
License
MIT
Repository
github
Last release
3 years ago

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

2.1.3

3 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago