Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should passes when used properly', () => {
;
});
it('should passes when used properly', () => {
;
});
it('should passes when used properly', () => {
;
});
it('should pass when call with valid options object', () => {
camera.recordAsync({
quality: Constants.VideoQuality['720p'],
maxDuration: 1,
maxFileSize: 1,
mute: true,
});
});
it('should passes when used properly', () => {
;
});
it('should passes when used properly', () => {
;
});
flipCamera() {
const newState = this.state.cameraType === Camera.Constants.Type.back
? Camera.Constants.Type.front
: Camera.Constants.Type.back;
this.setState({
cameraType: newState,
});
}
private renderPhotoItem = (): React.ReactElement => {
const { themedStyle } = this.props;
return (
flipCamera() {
const newState = this.state.cameraType === Camera.Constants.Type.back
? Camera.Constants.Type.front
: Camera.Constants.Type.back;
this.setState({
cameraType: newState,
});
}
render() {
const { position } = this.props;
const type = Camera.Constants.Type[position];
return (
this.camera
}}
>