react-native-boxes 1.3.27 → 1.3.28
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 +1 -1
- package/src/Input.tsx +4 -8
package/package.json
CHANGED
package/src/Input.tsx
CHANGED
|
@@ -85,7 +85,8 @@ export function CompositeTextInputView(props: TextInputProps & {
|
|
|
85
85
|
initialText?: string,
|
|
86
86
|
leftIcon?: 'edit' | string | React.Component,
|
|
87
87
|
icon?: 'close' | 'eye' | string | React.Component,
|
|
88
|
-
onIconPress?: ((event: GestureResponderEvent) => void) | undefined
|
|
88
|
+
onIconPress?: ((event: GestureResponderEvent) => void) | undefined,
|
|
89
|
+
textInputProps?: TextInputProps
|
|
89
90
|
}) {
|
|
90
91
|
const theme = useContext(ThemeContext)
|
|
91
92
|
const [text, setText] = useState(props.initialText)
|
|
@@ -97,17 +98,11 @@ export function CompositeTextInputView(props: TextInputProps & {
|
|
|
97
98
|
}
|
|
98
99
|
const fontStyles: any = assignFields({}, props.style,
|
|
99
100
|
[
|
|
100
|
-
"numberOfLines",
|
|
101
|
-
"returnKeyType",
|
|
102
|
-
"keyboardType",
|
|
103
|
-
"textContentType",
|
|
104
|
-
"multiline",
|
|
105
101
|
"fontFamily",
|
|
106
102
|
"fontSize",
|
|
107
103
|
"fontWeight",
|
|
108
104
|
"fontVariant",
|
|
109
|
-
"color"
|
|
110
|
-
"inputMode"
|
|
105
|
+
"color"
|
|
111
106
|
])
|
|
112
107
|
var hintVisible = false
|
|
113
108
|
if (props.placeholder && props.placeholder.length > 0 && focused) {
|
|
@@ -226,6 +221,7 @@ export function CompositeTextInputView(props: TextInputProps & {
|
|
|
226
221
|
} : {
|
|
227
222
|
|
|
228
223
|
}, fontStyles]}
|
|
224
|
+
{...props.textInputProps}
|
|
229
225
|
/>
|
|
230
226
|
{
|
|
231
227
|
alertVisible && <TextView
|