Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-camera-view

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-camera-view - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

screenshot.jpg

24

index.js
import React, {useEffect, useState} from "react";
import {View, StyleSheet, Image, Text} from "react-native";
import {View, StyleSheet, Image, Text, YellowBox, LogBox, Platform} from "react-native";
import {RNCamera} from 'react-native-camera';

@@ -11,2 +11,12 @@ import RNVideo from "react-native-video";

if(LogBox){
LogBox.ignoreLogs([
"Video is not recording"
]);
} else if(YellowBox){
YellowBox.ignoreWarnings([
"Video is not recording"
]);
}
export const VideoQuality = RNCamera.Constants.VideoQuality;

@@ -45,7 +55,8 @@

actionBottom: {
height: 200,
height: 150,
width: "100%",
position: "absolute",
zIndex: 1,
bottom: 0
bottom: 0,
marginBottom: "15%"
},

@@ -57,3 +68,3 @@ actionTop: {

zIndex: 1,
top: 0
top: "5%"
}

@@ -155,2 +166,5 @@ }

});
}).catch(()=>{
setMedia(null);
camera.stopRecording();
});

@@ -218,3 +232,3 @@ };

captureButtonProps={{
duration: videoDuration
duration: videoDuration + 1000
}}

@@ -221,0 +235,0 @@ onTakePicture={() => {

{
"name": "react-native-camera-view",
"version": "0.0.1",
"version": "0.1.0",
"description": "simple controls for react-native-camera",

@@ -10,3 +10,4 @@ "keywords": [

"url": "https://github.com/sitorhy/react-native-camera-view.git"
}
},
"license": "MIT"
}

@@ -13,4 +13,4 @@ import React from "react";

bottom: 0,
height: 150,
marginBottom: 50
height: 80,
marginBottom: "40%"
},

@@ -17,0 +17,0 @@ actionContainer: {

@@ -5,3 +5,3 @@ # React Native Camera View

![](./screenshot.png)
![](./screenshot.jpg)

@@ -101,3 +101,3 @@ ## Dependent

+ ### videoQuality
#### videoQuality

@@ -114,3 +114,3 @@ This option specifies the quality of the video to be taken, default 480p.

+ ### videoBitrate
#### videoBitrate

@@ -134,26 +134,40 @@ (int greater than 0) This option specifies a desired video bitrate. For example, 5 * 1000 * 1000 would be 5Mbps.

+ ### videoProps
component properties object for `react-native-video`.
#### videoProps
component properties object for `react-native-video`.
<br>
+ ### imageProps
component properties object for `Image`.
#### imageProps
component properties object for `Image`.
+ ### recordOptions
supported options for recording.
<br>
#### recordOptions
supported options for recording.
+ ### maxImageWidth
default 1920, set 0 / null / undefined is not be effected.
<br>
#### maxImageWidth
default 1920, set 0 / null / undefined is not be effected.
+ ### imageQuality
(float between 0 to 1.0), default 1.0
<br>
#### imageQuality
(float between 0 to 1.0), default 1.0
<br>
+ ### takePictureOptions
supported options for taking picture.
#### takePictureOptions
supported options for taking picture.
+ ### cameraProps
component properties object for `react-native-camera`.
<br>
#### cameraProps
component properties object for `react-native-camera`.
<br>
+ ### onBack
function to be called when confirm or cancel capturing.
```jsx
#### onBack
function to be called when confirm or cancel capturing.
```jsx
import RNCameraView from "react-native-camera-view";

@@ -182,2 +196,12 @@

}
```
```
<br>
#### disableRecording
default false
<br>
#### disableTakingPicture
default false
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc