@holper/react-native-holper-storybook 0.6.17 → 0.6.18

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,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { View, TouchableOpacity, Image } from 'react-native';
4
+ import {ImagePropTypes} from 'deprecated-react-native-prop-types';
4
5
  import Ionicons from 'react-native-vector-icons/Ionicons';
5
6
  import { Colors } from '../../configs/constants';
6
7
  import style from './style';
@@ -39,7 +40,7 @@ Header.defaultProps = {
39
40
 
40
41
  Header.propTypes = {
41
42
  inverted: PropTypes.bool,
42
- logo: Image.propTypes.source.isRequired,
43
+ logo: ImagePropTypes.source.isRequired,
43
44
  right: PropTypes.node,
44
45
  onMenuPress: PropTypes.func
45
46
  };
@@ -1,7 +1,7 @@
1
1
  import React, { useState } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { Image, View } from 'react-native';
4
- import {ViewPropTypes} from 'deprecated-react-native-prop-types';
4
+ import {ViewPropTypes, ImagePropTypes} from 'deprecated-react-native-prop-types';
5
5
  import style from './style';
6
6
 
7
7
  const ImageResponsive = ({ source, style: customStyle, avatar, ...props }) => {
@@ -32,7 +32,7 @@ ImageResponsive.defaultProps = {
32
32
 
33
33
  ImageResponsive.propTypes = {
34
34
  style: ViewPropTypes.style,
35
- source: Image.propTypes.source.isRequired,
35
+ source: ImagePropTypes.source.isRequired,
36
36
  avatar: PropTypes.bool
37
37
  };
38
38
 
@@ -1,6 +1,7 @@
1
1
  import React, { useState } from 'react';
2
2
  import { View, Modal, TouchableOpacity, ActivityIndicator, Image } from 'react-native';
3
3
  import Ionicons from 'react-native-vector-icons/Ionicons';
4
+ import {ImagePropTypes} from 'deprecated-react-native-prop-types';
4
5
  import ImageResponsive from '../ImageResponsive';
5
6
  import { Colors } from '../../configs/constants';
6
7
  import style from './style';
@@ -49,8 +50,8 @@ ImageViewer.defaultProps = {
49
50
  };
50
51
 
51
52
  ImageViewer.propTypes = {
52
- source: Image.propTypes.source.isRequired,
53
- style: Image.propTypes.style
53
+ source: ImagePropTypes.source.isRequired,
54
+ style: ImagePropTypes.style
54
55
  };
55
56
 
56
57
  export default ImageViewer;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { TouchableOpacity, View, Image } from 'react-native';
3
+ import { TouchableOpacity, View } from 'react-native';
4
+ import {ImagePropTypes} from 'deprecated-react-native-prop-types';
4
5
  import Text from '../Text';
5
6
  import ImageResponsive from '../ImageResponsive';
6
7
  import { Colors } from '../../configs/constants';
@@ -50,7 +51,7 @@ Notification.propTypes = {
50
51
  first: PropTypes.bool,
51
52
  active: PropTypes.bool,
52
53
  hideAvatar: PropTypes.bool,
53
- avatar: Image.propTypes.source,
54
+ avatar: ImagePropTypes.source,
54
55
  title: PropTypes.string,
55
56
  description: PropTypes.string,
56
57
  date: PropTypes.instanceOf(moment),
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import {Text as RNText} from 'react-native';
4
+ import {TextPropTypes} from 'deprecated-react-native-prop-types';
4
5
  import style from './style';
5
6
 
6
7
  const Text = ({variant, size, color, weight, align, style: customStyle, children, ...props}) => (
@@ -36,7 +37,7 @@ Text.propTypes = {
36
37
  size: PropTypes.oneOf(['tiny', 'small', 'medium', 'large', 'extra-large', 'huge']),
37
38
  weight: PropTypes.oneOf(['regular', 'bold', 'semiBold']),
38
39
  align: PropTypes.oneOf(['left', 'right', 'center', 'justify']),
39
- style: RNText.propTypes.style,
40
+ style: TextPropTypes.style,
40
41
  children: PropTypes.node
41
42
  };
42
43
 
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.17",
5
+ "version": "0.6.18",
6
6
  "license": "MIT",
7
7
  "files": [
8
8
  "lib",
@@ -29,24 +29,31 @@
29
29
  "dependencies": {
30
30
  "@react-native-async-storage/async-storage": "~1.17.3",
31
31
  "deprecated-react-native-prop-types": "^2.3.0",
32
- "expo-camera": "~12.2.0",
33
- "expo-font": "~10.1.0",
34
- "expo-image-manipulator": "~10.3.1",
35
- "expo-image-picker": "~13.1.1",
36
- "expo-media-library": "~14.1.0",
32
+ "expo": "^46.0.0",
33
+ "expo-asset": "~8.6.1",
34
+ "expo-camera": "~12.3.0",
35
+ "expo-font": "~10.2.0",
36
+ "expo-image-manipulator": "~10.4.0",
37
+ "expo-image-picker": "~13.3.1",
38
+ "expo-media-library": "~14.2.0",
39
+ "expo-status-bar": "~1.4.0",
37
40
  "moment": "^2.29.3",
38
41
  "prop-types": "^15.8.1",
42
+ "react": "18.0.0",
43
+ "react-dom": "18.0.0",
44
+ "react-native": "0.69.3",
39
45
  "react-native-countdown-circle-timer": "^3.0.9",
40
46
  "react-native-deck-swiper": "^2.0.5",
41
47
  "react-native-flash-message": "^0.2.1",
42
48
  "react-native-picker-select": "^8.0.4",
43
- "react-native-safe-area-context": "4.2.4",
49
+ "react-native-safe-area-context": "4.3.1",
44
50
  "react-native-status-bar-height": "^2.6.0",
45
51
  "react-native-svg": "12.3.0",
46
- "react-native-vector-icons": "^9.1.0"
52
+ "react-native-vector-icons": "^9.1.0",
53
+ "react-native-web": "~0.18.7"
47
54
  },
48
55
  "devDependencies": {
49
- "@babel/core": "^7.12.9",
56
+ "@babel/core": "^7.18.6",
50
57
  "@storybook/addon-actions": "^5.3",
51
58
  "@storybook/addon-knobs": "^5.3",
52
59
  "@storybook/addon-links": "^5.3",
@@ -54,19 +61,12 @@
54
61
  "@storybook/addon-ondevice-knobs": "^5.3.23",
55
62
  "@storybook/react-native": "^5.3.23",
56
63
  "@storybook/react-native-server": "^5.3.23",
57
- "babel-loader": "^8.2.2",
58
- "expo": "^45.0.0",
59
- "expo-asset": "~8.5.0",
60
- "expo-status-bar": "~1.3.0",
61
- "react": "17.0.2",
62
- "react-dom": "17.0.2",
63
- "react-native": "0.68.2",
64
- "react-native-web": "0.17.7"
64
+ "babel-loader": "^8.2.2"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "expo-camera": "^12.2.0",
68
- "react": ">=16.13.1",
69
- "react-dom": ">=16.13.1",
70
- "react-native": ">=0.60.0"
68
+ "react": ">=18.0.0",
69
+ "react-dom": ">=18.0.0",
70
+ "react-native": ">=0.69.3"
71
71
  }
72
72
  }