mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 21:27:47 +00:00
25 lines
392 B
JavaScript
25 lines
392 B
JavaScript
|
|
import { StyleSheet } from 'react-native';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Make video element fill its container.
|
||
|
|
*/
|
||
|
|
const video = {
|
||
|
|
flex: 1
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Transform local videos to behave like a mirror.
|
||
|
|
*/
|
||
|
|
const mirroredVideo = {
|
||
|
|
...video,
|
||
|
|
transform: [ { scaleX: -1 } ]
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Native-specific styles for media components.
|
||
|
|
*/
|
||
|
|
export const styles = StyleSheet.create({
|
||
|
|
mirroredVideo,
|
||
|
|
video
|
||
|
|
});
|