react-crud-mobile 1.3.293 → 1.3.295

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-crud-mobile",
3
- "version": "1.3.293",
3
+ "version": "1.3.295",
4
4
  "license": "MIT",
5
5
  "description": "Uma biblioteca de componentes para React Native",
6
6
  "main": "dist/index.js",
@@ -58,6 +58,7 @@ export default function UIInput(props: ChildType) {
58
58
  let decode = {
59
59
  textarea: {
60
60
  multiline: true,
61
+ autoHeight: element.autoHeight !== false,
61
62
  textAlignVertical: 'top',
62
63
  numberOfLines: 5,
63
64
  style: { height: Math.max(40, height) },
@@ -67,7 +68,7 @@ export default function UIInput(props: ChildType) {
67
68
  let defs = { ...Utils.nvl(decode[type], {}), ...element.inputProps };
68
69
  let inputStyle = { ...style('input', scope.getStyle(type)) };
69
70
 
70
- if (element.autoHeight) {
71
+ if (defs.autoHeight) {
71
72
  defs.onContentSizeChange = event => {
72
73
  setHeight(event.nativeEvent.contentSize.height);
73
74
  };
@@ -116,6 +117,7 @@ const styles = StyleSheet.create({
116
117
  marginHorizontal: 0,
117
118
  marginVertical: 0,
118
119
  height: 40,
120
+ width: '100%',
119
121
  flex: 1, // Para o input ocupar o espaço restante
120
122
  },
121
123
  });