@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:
|
|
34
|
-
left:
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
>
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
</
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
</View>
|
|
40
|
+
</Modal>
|
|
41
|
+
);
|
|
45
42
|
|
|
46
43
|
ConfirmPictureModal.defaultProps = {
|
|
47
44
|
visible: false,
|