@holper/react-native-holper-storybook 0.6.79 → 0.6.81

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.
@@ -106,7 +106,7 @@ const TakePicture = ({
106
106
  onClose();
107
107
  };
108
108
 
109
- if (!permission || permission.status !== 'granted') {
109
+ if (!permission?.granted) {
110
110
  return (
111
111
  <View style={style.cameraPermissionsContainer}>
112
112
  <Text color='red'>{cameraErrorMessage}</Text>
@@ -130,8 +130,8 @@ const TakePicture = ({
130
130
  style={style.cameraContainer}
131
131
  facing={type}
132
132
  ratio={DESIRED_RATIO}
133
- >
134
- {avatar && isiOS && <SvgCircle />}
133
+ />
134
+ {/* {avatar && isiOS && <SvgCircle />}
135
135
 
136
136
  <View style={style.cameraFlipContainer}>
137
137
  <TouchableOpacity onPress={closeModal} style={style.closeIcon}>
@@ -162,7 +162,7 @@ const TakePicture = ({
162
162
  </View>
163
163
 
164
164
  {avatar && isAndroid && <SvgCircle />}
165
- </CameraView>
165
+ </CameraView> */}
166
166
 
167
167
  {takingPicture && (
168
168
  <View style={style.cameraTakingPictureOverlay}>
@@ -6,7 +6,6 @@ import {
6
6
  ActivityIndicator,
7
7
  Platform,
8
8
  } from 'react-native';
9
- import { CameraView, useCameraPermissions } from 'expo-camera';
10
9
  import * as MediaLibrary from 'expo-media-library';
11
10
  import * as ExpoImagePicker from 'expo-image-picker';
12
11
  import Text from '../Text';
@@ -35,7 +34,6 @@ const UploadDocument = ({
35
34
  file,
36
35
  onPermissionDenied,
37
36
  }) => {
38
- const [permission, requestPermission] = useCameraPermissions();
39
37
  const [showMediaModal, setShowMediaModal] = useState(false);
40
38
  const [showCamera, setShowCamera] = useState(false);
41
39
  const [image, setImage] = useState(null);
@@ -43,7 +41,6 @@ const UploadDocument = ({
43
41
 
44
42
  useEffect(() => {
45
43
  (async () => {
46
- await requestPermission();
47
44
  iOS
48
45
  ? await MediaLibrary.requestPermissionsAsync()
49
46
  : await ExpoImagePicker.getMediaLibraryPermissionsAsync();
@@ -62,11 +59,6 @@ const UploadDocument = ({
62
59
  switch (method) {
63
60
  case 'camera':
64
61
  setTimeout(async () => {
65
- if (permission && permission.status !== 'granted') {
66
- onPermissionDenied();
67
- return;
68
- }
69
-
70
62
  setShowCamera(true);
71
63
  }, 500);
72
64
  break;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "main": "lib/index.js",
3
3
  "name": "@holper/react-native-holper-storybook",
4
4
  "description": "A component library for Holper projects",
5
- "version": "0.6.79",
5
+ "version": "0.6.81",
6
6
  "license": "MIT",
7
7
  "files": [
8
8
  "lib",
@@ -31,9 +31,9 @@
31
31
  "@react-native-community/datetimepicker": "8.2.0",
32
32
  "@react-native-community/slider": "4.5.5",
33
33
  "deprecated-react-native-prop-types": "^5.0.0",
34
- "expo": "^52.0.37",
34
+ "expo": "^52.0.39",
35
35
  "expo-asset": "~11.0.4",
36
- "expo-camera": "~16.0.17",
36
+ "expo-camera": "~16.0.18",
37
37
  "expo-font": "~13.0.4",
38
38
  "expo-image": "~2.0.6",
39
39
  "expo-image-manipulator": "~13.0.6",
@@ -69,7 +69,7 @@
69
69
  "@storybook/react-native": "^6.5.7",
70
70
  "@storybook/react-native-server": "^6.5.8",
71
71
  "babel-loader": "^9.1.3",
72
- "expo-dev-client": "~5.0.12"
72
+ "expo-dev-client": "~5.0.14"
73
73
  },
74
74
  "peerDependencies": {
75
75
  "expo-camera": ">=13.0.0",