Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android: crash due to backgroundColor #14

Closed
gsavvid opened this issue Mar 14, 2017 · 6 comments
Closed

Android: crash due to backgroundColor #14

gsavvid opened this issue Mar 14, 2017 · 6 comments

Comments

@gsavvid
Copy link

gsavvid commented Mar 14, 2017

On my Android phone (7.1.1) I get the a crash Error while updating property 'backgroundColor' of a View managed by: RCTVideo. This doesn't happen on Genymotion with Android 5.0.0.

The problem is resolved if you remove backgroundColor from styles.video.

@cornedor
Copy link
Collaborator

What is the color you are trying to set?

@gsavvid
Copy link
Author

gsavvid commented Mar 14, 2017

I'm not trying to set any color. When I said styles.video I was referring to the style that is defined in the library (inside index.js, line 29).

@cornedor
Copy link
Collaborator

Sorry, but I cannot reproduce this. Do you have the same issue when you run the example on your phone?

@cornedor
Copy link
Collaborator

@gsavvid have you been able the solve this?

@gsavvid
Copy link
Author

gsavvid commented Mar 22, 2017

@cornedor Yes, I solved it by commenting out the following line from index.js of react-native-video-player:

video: {
  // backgroundColor: 'black',
},

This crash was happening on my Nexus 5x with Android v7.1.1.

@cornedor
Copy link
Collaborator

Thanks for the update, I'll close the issue for now since it works on my 5X with 7.1.1.

If someone else has the same issue I'll reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants