@shoutem/ui 7.1.0-beta.20 → 7.1.0-beta.21
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.
- package/components/TextInput.js +3 -3
- package/package.json +2 -2
package/components/TextInput.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable react/no-multi-comp */
|
|
2
2
|
import React, { forwardRef, PureComponent } from 'react';
|
|
3
|
-
import { TextInput as RNTextInput
|
|
3
|
+
import { Platform, TextInput as RNTextInput } from 'react-native';
|
|
4
4
|
import autoBindReact from 'auto-bind/react';
|
|
5
5
|
import { TextInputPropTypes } from 'deprecated-react-native-prop-types';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
@@ -64,7 +64,7 @@ class TextInput extends PureComponent {
|
|
|
64
64
|
...otherStyle
|
|
65
65
|
} = style;
|
|
66
66
|
|
|
67
|
-
const containerStyle = Platform.OS ===
|
|
67
|
+
const containerStyle = Platform.OS === 'web' ? { height } : undefined;
|
|
68
68
|
const hasBorder = (isFocused && highlightOnFocus) || !!errorMessage;
|
|
69
69
|
const startErrorAnimation = animate && !!errorMessage;
|
|
70
70
|
|
|
@@ -82,7 +82,7 @@ class TextInput extends PureComponent {
|
|
|
82
82
|
...(hasBorder ? withBorder : withoutBorder),
|
|
83
83
|
...(errorMessage ? errorBorderColor : {}),
|
|
84
84
|
...otherStyle,
|
|
85
|
-
height
|
|
85
|
+
height,
|
|
86
86
|
}}
|
|
87
87
|
ref={forwardedRef}
|
|
88
88
|
/>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shoutem/ui",
|
|
3
|
-
"version": "7.1.0-beta.
|
|
3
|
+
"version": "7.1.0-beta.21",
|
|
4
4
|
"description": "Styleable set of components for React Native applications",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"lint": "eslint .",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"react-native-toast-message": "2.1.5",
|
|
41
41
|
"react-native-vimeo-iframe": "^1.2.1",
|
|
42
42
|
"react-native-web-refresh-control": "1.1.2",
|
|
43
|
-
"react-native-webview": "
|
|
43
|
+
"react-native-webview": "11.23.0",
|
|
44
44
|
"react-native-youtube-iframe": "2.2.2",
|
|
45
45
|
"react-native-actions-sheet": "0.9.3",
|
|
46
46
|
"stream": "0.0.2",
|