You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324
  1. import { StyleSheet } from 'react-native';
  2. /**
  3. * Make video element fill its container.
  4. */
  5. const video = {
  6. flex: 1
  7. };
  8. /**
  9. * Transform local videos to behave like a mirror.
  10. */
  11. const mirroredVideo = {
  12. ...video,
  13. transform: [ { scaleX: -1 } ]
  14. };
  15. /**
  16. * Native-specific styles for media components.
  17. */
  18. export const styles = StyleSheet.create({
  19. mirroredVideo,
  20. video
  21. });