react-native-youtube-portrait-mode-enabled
v2.1.3
Published
An extended <YouTube/> component for React Native which portrait mode enabled.
Downloads
6
Maintainers
Readme
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
- MriDx
- Param Aggarwal ([email protected])
- David Ohayon (@davidohayon669)
License
MIT License