react-native-boxes 1.3.26 → 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 -7
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,16 +98,11 @@ export function CompositeTextInputView(props: TextInputProps & {
|
|
|
97
98
|
}
|
|
98
99
|
const fontStyles: any = assignFields({}, props.style,
|
|
99
100
|
[
|
|
100
|
-
"returnKeyType",
|
|
101
|
-
"keyboardType",
|
|
102
|
-
"textContentType",
|
|
103
|
-
"multiline",
|
|
104
101
|
"fontFamily",
|
|
105
102
|
"fontSize",
|
|
106
103
|
"fontWeight",
|
|
107
104
|
"fontVariant",
|
|
108
|
-
"color"
|
|
109
|
-
"inputMode"
|
|
105
|
+
"color"
|
|
110
106
|
])
|
|
111
107
|
var hintVisible = false
|
|
112
108
|
if (props.placeholder && props.placeholder.length > 0 && focused) {
|
|
@@ -225,6 +221,7 @@ export function CompositeTextInputView(props: TextInputProps & {
|
|
|
225
221
|
} : {
|
|
226
222
|
|
|
227
223
|
}, fontStyles]}
|
|
224
|
+
{...props.textInputProps}
|
|
228
225
|
/>
|
|
229
226
|
{
|
|
230
227
|
alertVisible && <TextView
|