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

Video-Not having the ability to edit the poster source styles #4165

Closed
SebastianKurp opened this issue May 8, 2019 · 0 comments
Closed

Video-Not having the ability to edit the poster source styles #4165

SebastianKurp opened this issue May 8, 2019 · 0 comments
Assignees
Labels

Comments

@SebastianKurp
Copy link

SebastianKurp commented May 8, 2019

🐛 Bug Report

Environment

Testing on an S8 physically and an iPhone XR via the simulator

Steps to Reproduce

Implement the video component
add an image to the posterSource prop

Expected Behavior

The Video component has a prop which allows the editing of the posterSource Styles.
Example: passing in the style of resizeMode:'cover' or width:200 so that image covers/matches the entirety of the video container

Actual Behavior

const _STYLES = StyleSheet.create({
  base: {
    overflow: 'hidden',
  },
  poster: {
    position: 'absolute',
    left: 0,
    top: 0,
    right: 0,
    bottom: 0,
    resizeMode: 'contain',
  },
  video: {
    position: 'absolute',
    left: 0,
    top: 0,
    right: 0,
    bottom: 0,
  },
});

Reproducible Demo

https://snack.expo.io/SkGiAaxhN

@cruzach cruzach added the Video label May 9, 2019
@lock lock bot added the outdated label Nov 5, 2019
@lock lock bot locked and limited conversation to collaborators Nov 5, 2019
Jamedjo pushed a commit to Jamedjo/expo that referenced this issue Feb 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants