Makes sure style is an array for it to spread
This commit is contained in:
@@ -4,6 +4,7 @@ import { TextInput } from 'react-native'
|
|||||||
import styles from '../styles'
|
import styles from '../styles'
|
||||||
|
|
||||||
export default function AppTextInput({ style, ...props }) {
|
export default function AppTextInput({ style, ...props }) {
|
||||||
|
if (!Array.isArray(style)) style = [style]
|
||||||
return (
|
return (
|
||||||
<TextInput
|
<TextInput
|
||||||
style={[styles.textInputField, ...style]}
|
style={[styles.textInputField, ...style]}
|
||||||
|
|||||||
Reference in New Issue
Block a user