@holper/react-native-holper-storybook 0.6.60 → 0.6.62
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.
|
@@ -6,7 +6,7 @@ import { Colors } from '../../configs/constants';
|
|
|
6
6
|
import Text from '../Text';
|
|
7
7
|
import style from './style';
|
|
8
8
|
|
|
9
|
-
const Footer = ({ inverted, tabs
|
|
9
|
+
const Footer = ({ inverted, tabs }) => {
|
|
10
10
|
const renderTab = () =>
|
|
11
11
|
tabs.map((tab, index) => (
|
|
12
12
|
<TouchableOpacity
|
|
@@ -17,9 +17,9 @@ const Footer = ({ inverted, tabs, isPrime }) => {
|
|
|
17
17
|
<Ionicons
|
|
18
18
|
name={tab.icon}
|
|
19
19
|
size={20}
|
|
20
|
-
color={
|
|
20
|
+
color={inverted ? Colors.white : Colors.darkblue}
|
|
21
21
|
/>
|
|
22
|
-
<Text color={
|
|
22
|
+
<Text color={inverted ? 'white' : 'dark'} size='small'>
|
|
23
23
|
{tab.text}
|
|
24
24
|
</Text>
|
|
25
25
|
{tab.badge && tab.badge > 0 && (
|
|
@@ -43,13 +43,11 @@ const Footer = ({ inverted, tabs, isPrime }) => {
|
|
|
43
43
|
|
|
44
44
|
Footer.defaultProps = {
|
|
45
45
|
inverted: false,
|
|
46
|
-
isPrime: false,
|
|
47
46
|
tabs: [],
|
|
48
47
|
};
|
|
49
48
|
|
|
50
49
|
Footer.propTypes = {
|
|
51
50
|
inverted: PropTypes.bool,
|
|
52
|
-
isPrime: PropTypes.bool,
|
|
53
51
|
tabs: PropTypes.arrayOf(
|
|
54
52
|
PropTypes.shape({
|
|
55
53
|
onPress: PropTypes.func,
|
|
@@ -6,7 +6,7 @@ import Ionicons from 'react-native-vector-icons/Ionicons';
|
|
|
6
6
|
import { Colors } from '../../configs/constants';
|
|
7
7
|
import style from './style';
|
|
8
8
|
|
|
9
|
-
const Header = ({ inverted, logo, right, onMenuPress
|
|
9
|
+
const Header = ({ inverted, logo, right, onMenuPress }) => (
|
|
10
10
|
<View
|
|
11
11
|
style={[style.headerContainer, style[inverted ? 'inverted' : 'default']]}
|
|
12
12
|
>
|
|
@@ -14,7 +14,7 @@ const Header = ({ inverted, logo, right, onMenuPress, isPrime }) => (
|
|
|
14
14
|
<Ionicons
|
|
15
15
|
name='menu-outline'
|
|
16
16
|
size={30}
|
|
17
|
-
color={
|
|
17
|
+
color={inverted ? Colors.white : Colors.darkblue}
|
|
18
18
|
/>
|
|
19
19
|
</TouchableOpacity>
|
|
20
20
|
<View style={style.imageContainer}>
|
|
@@ -31,7 +31,6 @@ const Header = ({ inverted, logo, right, onMenuPress, isPrime }) => (
|
|
|
31
31
|
|
|
32
32
|
Header.defaultProps = {
|
|
33
33
|
inverted: false,
|
|
34
|
-
isPrime: false,
|
|
35
34
|
logo: null,
|
|
36
35
|
right: null,
|
|
37
36
|
onMenuPress: () => {},
|
|
@@ -39,7 +38,6 @@ Header.defaultProps = {
|
|
|
39
38
|
|
|
40
39
|
Header.propTypes = {
|
|
41
40
|
inverted: PropTypes.bool,
|
|
42
|
-
isPrime: PropTypes.bool,
|
|
43
41
|
logo: ImagePropTypes.source.isRequired,
|
|
44
42
|
right: PropTypes.node,
|
|
45
43
|
onMenuPress: PropTypes.func,
|
|
@@ -14,8 +14,8 @@ export default {
|
|
|
14
14
|
alignItems: 'center',
|
|
15
15
|
},
|
|
16
16
|
default: {
|
|
17
|
-
backgroundColor: Colors.
|
|
18
|
-
borderBottomColor: Colors.
|
|
17
|
+
backgroundColor: Colors.white,
|
|
18
|
+
borderBottomColor: Colors.lightblue,
|
|
19
19
|
borderBottomWidth: 1,
|
|
20
20
|
},
|
|
21
21
|
inverted: {
|
package/lib/configs/constants.js
CHANGED
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.
|
|
5
|
+
"version": "0.6.62",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"files": [
|
|
8
8
|
"lib",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@react-native-async-storage/async-storage": "1.21.0",
|
|
31
|
-
"@react-native-community/datetimepicker": "
|
|
31
|
+
"@react-native-community/datetimepicker": "8.2.0",
|
|
32
32
|
"@react-native-community/slider": "4.4.2",
|
|
33
33
|
"deprecated-react-native-prop-types": "^5.0.0",
|
|
34
34
|
"expo": "~50.0.17",
|