secullum-react-native-ui 4.16.0 → 4.16.1-beta

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,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { KeyboardType, StyleProp, TextInput, TextInputKeyPressEventData, TextStyle, ViewStyle, TextInputProps, ReturnKeyTypeOptions } from 'react-native';
2
+ import { KeyboardType, StyleProp, TextInput, TextInputKeyPressEventData, TextStyle, ViewStyle, TextInputProps, ReturnKeyTypeOptions, ColorValue } from 'react-native';
3
3
  export interface TextBoxInputProps extends TextInputProps {
4
4
  ref: (ref: TextInput) => void;
5
5
  }
@@ -8,6 +8,7 @@ export interface TextBoxProperties {
8
8
  label?: string;
9
9
  icon?: string;
10
10
  placeholder?: string;
11
+ placeholderTextColor?: ColorValue;
11
12
  value: string;
12
13
  onChange?: (value: string) => void;
13
14
  onKeyPress?: (nativeEvent: TextInputKeyPressEventData) => void;
@@ -76,6 +76,7 @@ class TextBox extends React.Component {
76
76
  //@ts-ignore: no Android < 6 essa é a prop que deixa o underline transparente. https://stackoverflow.com/questions/40478246/remove-underline-in-inputtext-in-react-native
77
77
  borderWidth: 0,
78
78
  placeholder: this.props.placeholder,
79
+ placeholderTextColor: this.props.placeholderTextColor,
79
80
  secureTextEntry: this.props.secureTextEntry,
80
81
  multiline: this.props.multiline,
81
82
  editable: this.props.editable,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secullum-react-native-ui",
3
- "version": "4.16.0",
3
+ "version": "4.16.1-beta",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "files": [