@holper/react-native-holper-storybook 0.6.11 → 0.6.14

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.
@@ -45,6 +45,7 @@ const SwipeablePanel = ({
45
45
  const LARGE_PANEL_HEIGHT = (screenHeight - offset) - calcMarginTop(); // This is the margin top
46
46
  const MEDIUM_PANEL_HEIGHT = 400; // Fixed height
47
47
 
48
+ const [closeButtonClicked, setCloseButtonClicked] = useState(false);
48
49
  const [status, setStatus] = useState(STATUS.LARGE);
49
50
  const [animatedValueY, setAnimatedValueY] = useState(LARGE_PANEL_HEIGHT);
50
51
  const pan = useRef(new Animated.ValueXY({x: 0, y: LARGE_PANEL_HEIGHT})).current;
@@ -152,7 +153,10 @@ const SwipeablePanel = ({
152
153
  </View>
153
154
 
154
155
  {closeButton && (
155
- <TouchableOpacity onPress={onClose} style={style.closeButton}>
156
+ <TouchableOpacity onPress={() => {
157
+ setCloseButtonClicked(true);
158
+ onClose();
159
+ }} style={style.closeButton}>
156
160
  <Ionicons name='close-outline' size={20} color={Colors.darkblue}/>
157
161
  </TouchableOpacity>
158
162
  )}
@@ -163,7 +167,11 @@ const SwipeablePanel = ({
163
167
  isPlaying={true}
164
168
  duration={closeAfterSeconds}
165
169
  colors={Colors.green}
166
- onComplete={onClose}
170
+ onComplete={() => {
171
+ if (!closeButtonClicked) {
172
+ onClose();
173
+ }
174
+ }}
167
175
  size={40}
168
176
  strokeWidth={4}
169
177
  >
@@ -74,7 +74,7 @@ export default {
74
74
  },
75
75
  autoClose: {
76
76
  position: 'absolute',
77
- right: 10,
77
+ left: 10,
78
78
  top: 10
79
79
  },
80
80
  };
@@ -1,11 +1,11 @@
1
1
  import * as Font from 'expo-font';
2
2
 
3
- export const loadFonts = [
4
- asyncLoadFont
5
- ];
6
-
7
3
  export const asyncLoadFont = Font.loadAsync({
8
4
  poppins_bold: require('../assets/fonts/Poppins-Bold.ttf'),
9
5
  poppins_regular: require('../assets/fonts/Poppins-Regular.ttf'),
10
6
  poppins_semiBold: require('../assets/fonts/Poppins-SemiBold.ttf')
11
7
  });
8
+
9
+ export const loadFonts = [
10
+ asyncLoadFont
11
+ ];
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.11",
5
+ "version": "0.6.14",
6
6
  "license": "MIT",
7
7
  "files": [
8
8
  "lib",
@@ -28,21 +28,21 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@react-native-async-storage/async-storage": "~1.15.0",
31
- "expo-camera": "~12.1.0",
31
+ "expo-camera": "~12.1.2",
32
32
  "expo-font": "~10.0.4",
33
33
  "expo-image-manipulator": "~10.2.0",
34
34
  "expo-image-picker": "~12.0.1",
35
35
  "expo-media-library": "~14.0.0",
36
- "moment": "^2.29.1",
37
- "prop-types": "^15.7.2",
38
- "react-native-countdown-circle-timer": "^2.5.4",
36
+ "moment": "^2.29.3",
37
+ "prop-types": "^15.8.1",
38
+ "react-native-countdown-circle-timer": "^3.0.9",
39
39
  "react-native-deck-swiper": "^2.0.5",
40
- "react-native-flash-message": "^0.1.21",
40
+ "react-native-flash-message": "^0.2.1",
41
41
  "react-native-picker-select": "^8.0.4",
42
42
  "react-native-safe-area-context": "3.3.2",
43
43
  "react-native-status-bar-height": "^2.6.0",
44
44
  "react-native-svg": "12.1.1",
45
- "react-native-vector-icons": "^8.0.0"
45
+ "react-native-vector-icons": "^9.1.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@babel/core": "^7.12.9",
@@ -63,7 +63,7 @@
63
63
  "react-native-web": "0.17.1"
64
64
  },
65
65
  "peerDependencies": {
66
- "expo-camera": "~12.0.3",
66
+ "expo-camera": "^12.2.0",
67
67
  "react": ">=16.13.1",
68
68
  "react-dom": ">=16.13.1",
69
69
  "react-native": ">=0.60.0",