@holper/react-native-holper-storybook 0.6.101 → 0.6.102

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.
@@ -9,7 +9,7 @@ export default {
9
9
  flex: 1,
10
10
  justifyContent: 'center',
11
11
  alignItems: 'center',
12
- position: 'relative'
12
+ position: 'relative',
13
13
  },
14
14
  closeIcon: {
15
15
  position: 'absolute',
@@ -21,17 +21,17 @@ export default {
21
21
  borderRadius: 15,
22
22
  backgroundColor: Colors.lightblue,
23
23
  alignItems: 'center',
24
- justifyContent: 'center'
24
+ justifyContent: 'center',
25
25
  },
26
26
  body: {
27
27
  width,
28
28
  height,
29
29
  alignSelf: 'center',
30
- position: 'relative'
30
+ position: 'relative',
31
31
  },
32
32
  activityIndicator: {
33
- top: (height / 2) - 100,
34
- left: (width / 2) - 20,
35
- position: 'absolute'
36
- }
33
+ top: height / 2 - 100,
34
+ left: width / 2 - 20,
35
+ position: 'absolute',
36
+ },
37
37
  };
@@ -13,35 +13,32 @@ export const ConfirmPictureModal = ({
13
13
  image,
14
14
  repeatPictureText,
15
15
  usePictureText,
16
- }) => {
17
- return (
18
- <Modal
19
- animationType='slide'
20
- transparent={false}
21
- visible={visible}
22
- onRequestClose={() => {}}
23
- >
24
- <View style={style.cameraTakenImageContainer}>
25
- <ImageResponsive
26
- source={{
27
- uri: image ? image.uri : null,
28
- cache: 'only-if-cached',
29
- }}
30
- style={avatar ? style.cameraTakenImage : style.cameraContainer}
31
- />
16
+ }) => (
17
+ <Modal
18
+ animationType='slide'
19
+ transparent={false}
20
+ visible={visible}
21
+ onRequestClose={() => {}}
22
+ >
23
+ <View style={style.cameraTakenImageContainer}>
24
+ <ImageResponsive
25
+ source={{
26
+ uri: image ? image.uri : null,
27
+ }}
28
+ style={avatar ? style.cameraTakenImage : style.cameraContainer}
29
+ />
32
30
 
33
- <View style={style.cameraRetakePhoto}>
34
- <TouchableOpacity onPress={onRepeatPhoto}>
35
- <Text style={style.cameraRetakePhotoText}>{repeatPictureText}</Text>
36
- </TouchableOpacity>
37
- <TouchableOpacity onPress={onUsePhoto}>
38
- <Text style={style.cameraRetakePhotoText}>{usePictureText}</Text>
39
- </TouchableOpacity>
40
- </View>
31
+ <View style={style.cameraRetakePhoto}>
32
+ <TouchableOpacity onPress={onRepeatPhoto}>
33
+ <Text style={style.cameraRetakePhotoText}>{repeatPictureText}</Text>
34
+ </TouchableOpacity>
35
+ <TouchableOpacity onPress={onUsePhoto}>
36
+ <Text style={style.cameraRetakePhotoText}>{usePictureText}</Text>
37
+ </TouchableOpacity>
41
38
  </View>
42
- </Modal>
43
- );
44
- };
39
+ </View>
40
+ </Modal>
41
+ );
45
42
 
46
43
  ConfirmPictureModal.defaultProps = {
47
44
  visible: false,
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.101",
5
+ "version": "0.6.102",
6
6
  "license": "MIT",
7
7
  "files": [
8
8
  "lib",