@holper/react-native-holper-storybook 0.6.86 → 0.6.87

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.
@@ -1,12 +1,6 @@
1
1
  import React, { useState, useRef } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import {
4
- Modal,
5
- TouchableOpacity,
6
- Platform,
7
- View,
8
- ActivityIndicator,
9
- } from 'react-native';
3
+ import { Modal, TouchableOpacity, View, ActivityIndicator } from 'react-native';
10
4
  import Ionicons from 'react-native-vector-icons/Ionicons';
11
5
  import { CameraView, useCameraPermissions } from 'expo-camera';
12
6
  import * as ImageManipulator from 'expo-image-manipulator';
@@ -19,8 +13,6 @@ import { ConfirmPictureModal } from './confirmPictureModal';
19
13
  import style from './style';
20
14
 
21
15
  const DESIRED_RATIO = '16:9';
22
- const isAndroid = Platform.OS === 'android';
23
- const isiOS = Platform.OS === 'ios';
24
16
 
25
17
  const SvgCircle = () => {
26
18
  return (
@@ -131,7 +123,7 @@ const TakePicture = ({
131
123
  facing={type}
132
124
  ratio={DESIRED_RATIO}
133
125
  >
134
- {avatar && isiOS && <SvgCircle />}
126
+ {avatar && <SvgCircle />}
135
127
 
136
128
  <View style={style.cameraFlipContainer}>
137
129
  <TouchableOpacity onPress={closeModal} style={style.closeIcon}>
@@ -160,8 +152,6 @@ const TakePicture = ({
160
152
  />
161
153
  </TouchableOpacity>
162
154
  </View>
163
-
164
- {avatar && isAndroid && <SvgCircle />}
165
155
  </CameraView>
166
156
 
167
157
  {takingPicture && (
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.86",
5
+ "version": "0.6.87",
6
6
  "license": "MIT",
7
7
  "files": [
8
8
  "lib",