@holper/react-native-holper-storybook 0.6.54 → 0.6.55

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.
@@ -3,20 +3,26 @@ import PropTypes from 'prop-types';
3
3
  import { TextInput } from 'react-native';
4
4
  import style from './style';
5
5
 
6
- const Textarea = ({variant, disabled, numberOfLines, fitToContainer, ...props}) => (
6
+ const Textarea = ({
7
+ variant,
8
+ disabled,
9
+ numberOfLines,
10
+ fitToContainer,
11
+ ...props
12
+ }) => (
7
13
  <TextInput
8
14
  style={[
9
15
  style.textarea,
10
16
  fitToContainer ? style.fitToContainer : style.textAreaDefaultWidth,
11
- {height: numberOfLines*25},
17
+ { height: numberOfLines * 25 },
12
18
  style[variant],
13
- disabled ? style.disabled : {}
19
+ disabled ? style.disabled : {},
14
20
  ]}
15
- {...props}
16
21
  multiline
17
22
  editable={!disabled}
18
23
  numberOfLines={numberOfLines}
19
24
  textAlignVertical='top'
25
+ {...props}
20
26
  />
21
27
  );
22
28
 
@@ -24,7 +30,7 @@ Textarea.defaultProps = {
24
30
  variant: 'default',
25
31
  disabled: false,
26
32
  fitToContainer: false,
27
- numberOfLines: 4
33
+ numberOfLines: 4,
28
34
  };
29
35
 
30
36
  Textarea.propTypes = {
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.54",
5
+ "version": "0.6.55",
6
6
  "license": "MIT",
7
7
  "files": [
8
8
  "lib",