@holper/react-native-holper-storybook 0.6.24 → 0.6.26

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,39 +1,60 @@
1
- import React from 'react';
2
- import { View, Dimensions } from 'react-native';
3
- import PropTypes from 'prop-types';
4
- import Picker from 'react-native-picker-select';
5
- import Ionicons from 'react-native-vector-icons/Ionicons';
6
- import { Colors } from '../../configs/constants';
7
- import style from './style';
1
+ import React from "react";
2
+ import { View } from "react-native";
3
+ import PropTypes from "prop-types";
4
+ import Picker from "react-native-picker-select";
5
+ import Ionicons from "react-native-vector-icons/Ionicons";
6
+ import { Colors } from "../../configs/constants";
7
+ import style from "./style";
8
8
 
9
- const Select = ({value, onValueChange, items, variant, disabled, fitToContainer, placeholder}) => (
10
- <View style={[style.container, disabled ? style.disabled : {}, fitToContainer ? style.fit : {}]}>
9
+ const Select = ({
10
+ value,
11
+ onValueChange,
12
+ items,
13
+ variant,
14
+ disabled,
15
+ fitToContainer,
16
+ placeholder,
17
+ }) => (
18
+ <View
19
+ style={[
20
+ style.container,
21
+ disabled ? style.disabled : {},
22
+ fitToContainer ? style.fit : {},
23
+ ]}
24
+ >
11
25
  <Picker
12
26
  style={includesSelect[variant]}
13
- placeholder={{label: placeholder}}
27
+ placeholder={{ label: placeholder }}
14
28
  value={value}
15
29
  onValueChange={onValueChange}
16
30
  placeholderTextColor={Colors.midblue}
17
31
  useNativeAndroidPickerStyle={false}
18
32
  items={items}
19
33
  disabled={disabled}
20
- Icon={() => <Ionicons name='chevron-down-outline' size={20} style={style.selectIcon} color={Colors.darkgray} />}
34
+ Icon={() => (
35
+ <Ionicons
36
+ name="chevron-down-outline"
37
+ size={20}
38
+ style={style.selectIcon}
39
+ color={Colors.darkgray}
40
+ />
41
+ )}
21
42
  />
22
43
  </View>
23
44
  );
24
45
 
25
46
  Select.defaultProps = {
26
- variant: 'default',
27
- placeholder: ' ',
47
+ variant: "default",
48
+ placeholder: " ",
28
49
  disabled: false,
29
50
  fitToContainer: false,
30
51
  onValueChange: () => {},
31
52
  value: null,
32
- items: []
53
+ items: [],
33
54
  };
34
55
 
35
56
  Select.propTypes = {
36
- variant: PropTypes.oneOf(['default', 'completed', 'error']),
57
+ variant: PropTypes.oneOf(["default", "completed", "error"]),
37
58
  placeholder: PropTypes.string.isRequired,
38
59
  disabled: PropTypes.bool,
39
60
  fitToContainer: PropTypes.bool,
@@ -42,56 +63,56 @@ Select.propTypes = {
42
63
  items: PropTypes.arrayOf(
43
64
  PropTypes.shape({
44
65
  label: PropTypes.string,
45
- value: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
66
+ value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
46
67
  })
47
- )
68
+ ),
48
69
  };
49
70
 
50
71
  const basicStyle = {
51
72
  height: 50,
52
- width: '100%',
73
+ width: "100%",
53
74
  borderRadius: 25,
54
75
  borderWidth: 1,
55
76
  paddingHorizontal: 20,
56
77
  color: Colors.darkblue,
57
- fontFamily: 'poppins_regular',
78
+ fontFamily: "poppins_regular",
58
79
  backgroundColor: Colors.white,
59
- marginVertical: 6
80
+ marginVertical: 6,
60
81
  };
61
82
 
62
83
  const includesSelect = {
63
84
  default: {
64
85
  inputIOS: {
65
86
  ...basicStyle,
66
- borderColor: Colors.lightblue
87
+ borderColor: Colors.lightblue,
67
88
  },
68
89
  inputAndroid: {
69
90
  ...basicStyle,
70
- borderColor: Colors.lightblue
71
- }
91
+ borderColor: Colors.lightblue,
92
+ },
72
93
  },
73
94
  completed: {
74
95
  inputIOS: {
75
96
  ...basicStyle,
76
- borderColor: Colors.green
97
+ borderColor: Colors.green,
77
98
  },
78
99
  inputAndroid: {
79
100
  ...basicStyle,
80
- borderColor: Colors.green
81
- }
101
+ borderColor: Colors.green,
102
+ },
82
103
  },
83
104
  error: {
84
105
  inputIOS: {
85
106
  ...basicStyle,
86
107
  borderColor: Colors.red,
87
- color: Colors.red
108
+ color: Colors.red,
88
109
  },
89
110
  inputAndroid: {
90
111
  ...basicStyle,
91
112
  borderColor: Colors.red,
92
- color: Colors.red
93
- }
113
+ color: Colors.red,
114
+ },
94
115
  },
95
- }
116
+ };
96
117
 
97
118
  export default Select;
@@ -0,0 +1,5 @@
1
+ import registerRootComponent from 'expo/build/launch/registerRootComponent';
2
+
3
+ import App from '../../App';
4
+
5
+ registerRootComponent(App);
@@ -0,0 +1,10 @@
1
+ # expo
2
+
3
+ The `expo` package is a single package you can install in any React Native app to begin using Expo modules.
4
+
5
+ - includes core infrastructure for Expo modules: `expo-modules-core` and `expo-modules-autolinking`.
6
+ - bundles a minimal set of Expo modules that are required by nearly every app, such as `expo-asset`.
7
+ - provides [`@expo/cli`](https://github.com/expo/expo/blob/main/packages/%40expo/cli/README.md), a small CLI that provides a clean interface around both bundlers (such as Metro and Webpack) and native build tools (Xcode, Simulator.app, Android Studio, ADB, etc.), can generate native projects with `npx expo prebuild`, and aligns compatible package versions with `npx expo install`.
8
+ - exposes a JavaScript module that configures an app at runtime as needed to use `expo-font` and to function in Expo Go (optional, only if applicable).
9
+
10
+ See [CONTRIBUTING](./CONTRIBUTING.md) for instructions on working on this package.
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
- "main": "lib/index.js",
2
+ "main": "node_modules/expo/AppEntry.js",
3
3
  "name": "@holper/react-native-holper-storybook",
4
4
  "description": "A component library for Holper projects",
5
- "version": "0.6.24",
5
+ "version": "0.6.26",
6
6
  "license": "MIT",
7
7
  "files": [
8
8
  "lib",
@@ -28,8 +28,9 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@react-native-async-storage/async-storage": "1.17.11",
31
+ "@react-native-picker/picker": "2.4.8",
31
32
  "deprecated-react-native-prop-types": "^2.3.0",
32
- "expo": "^48.0.0",
33
+ "expo": "^48.0.6",
33
34
  "expo-asset": "~8.9.1",
34
35
  "expo-camera": "~13.2.1",
35
36
  "expo-font": "~11.1.1",
@@ -41,7 +42,7 @@
41
42
  "prop-types": "^15.8.1",
42
43
  "react": "18.2.0",
43
44
  "react-dom": "18.2.0",
44
- "react-native": "0.71.3",
45
+ "react-native": "0.71.6",
45
46
  "react-native-countdown-circle-timer": "^3.0.9",
46
47
  "react-native-deck-swiper": "^2.0.5",
47
48
  "react-native-flash-message": "^0.2.1",