@react-native-ohos/react-native-qr-decode-image-camera 1.2.0-rc.1 → 1.2.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Camera.tsx +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-ohos/react-native-qr-decode-image-camera",
3
- "version": "1.2.0-rc.1",
3
+ "version": "1.2.0-rc.2",
4
4
  "description": "Decode react native from gallery and camera",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
package/src/Camera.tsx CHANGED
@@ -6,7 +6,8 @@
6
6
 
7
7
  import React, { useState, useEffect } from 'react';
8
8
  import {
9
- PixelRatio
9
+ PixelRatio,
10
+ StyleSheet
10
11
  } from "react-native";
11
12
  import { Camera, useCameraDevice, useCameraPermission } from 'react-native-vision-camera'
12
13
  export const ComponentCamera = (props) => {
@@ -48,6 +49,7 @@ export const ComponentCamera = (props) => {
48
49
 
49
50
  return (
50
51
  <Camera
52
+ style={StyleSheet.absoluteFill}
51
53
  isActive={props.isActive}
52
54
  preview={true}
53
55
  device={device}