v6 iOS: Controls set to true crashes app
See original GitHub issueBug
When controls are set to true, app is crashing and we’re getting
react_native_video/RCTVideo.swift:636: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value
Platform
ayer are you experiencing the problem on:
- iOS
Environment info
System:
OS: macOS 12.2.1
CPU: (8) x64 Apple M1 Pro
Memory: 286.57 MB / 32.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.2.0 - ~/.asdf/installs/nodejs/16.2.0/bin/node
Yarn: 1.22.10 - ~/.asdf/installs/nodejs/16.2.0/.npm/bin/yarn
npm: 7.13.0 - ~/.asdf/installs/nodejs/16.2.0/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.11.2 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK:
API Levels: 23, 29, 30, 31
Build Tools: 29.0.2, 29.0.3, 30.0.2, 30.0.3, 31.0.0
System Images: android-29 | Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom, android-30 | Google APIs ARM 64 v8a, android-30 | Google Play ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2020.3 AI-203.7717.56.2031.7935034
Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
Languages:
Java: 11.0.11 - /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: ^0.68.0 => 0.68.2
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
Library version:
6.0.0-alpha.1
Steps To Reproduce
- Fresh install
yarn add react-native-video/react-native-video
Expected behaviour
- iOS app should not crash when mounting
Videocomponent withcontrolsset totrue
Reproducible sample code
<Video
paused
fullscreen
controls // when removed works fine
resizeMode="cover"
source={{ uri: path }}
onLoad={calculateDimensions}
style={[styles.video, style]}
/>
```
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:6
Top Results From Across the Web
App crashes in review but works well in Simulator or real device.
My app crashed for the second time in review but works well in simulator. It crashes on launch in their case and I...
Read more >Bug - Android 12 App crashes on startup due to error with ...
My unity project uses Google Ad Mob Unity Plugin v6.1.2 which is the latest version. Target api level is 31. The game runs...
Read more >Amazon Kindle app crashing on iOS devices after v6.64 update
Amazon Kindle app users are reporting an issue where its crashing on iOS devices after the v6.64 update. Here is a workaround.
Read more >Stack Navigator | React Navigation
Defaults to true when enableFreeze() from react-native-screens package is run at the top of the application. Requires react-native-screens version >=3.16.0.
Read more >AppsFlyer iOS SDK release notes – Help Center
iOS SDK V6 release notes ; 6.4.0. 2021-09-12. Added API: setSharingFilterForPartners lets you configure which partners the SDK should exclude ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

This has been fixed but not released yet: You can get the code Installing
npm install react-native-video@react-native-video/react-native-video#master(direct from git), until 6.0.0-alpha.2 is released: https://www.npmjs.com/package/react-native-video(Yes that is three
react-native-video’s in the install command)@nickfujita can you have a look to this issue please ?